public final class ResizeEvent


A resize event which is sent in response to the User interacting with the ResizableComponent.

Summary

Nested types

public static class ResizeEvent.ResizeState

Public constructors

ResizeEvent(
    @NonNull Entity entity,
    int resizeState,
    @NonNull FloatSize3d newSize
)

Public methods

boolean
equals(Object other)
final @NonNull Entity

The Entity being resized.

final @NonNull FloatSize3d

The new proposed size of the Entity in local space.

final int

The state of the resize event.

int

Public constructors

ResizeEvent

Added in 1.0.0-alpha05
public ResizeEvent(
    @NonNull Entity entity,
    int resizeState,
    @NonNull FloatSize3d newSize
)
Parameters
@NonNull Entity entity

The Entity being resized.

int resizeState

The state of the resize event.

@NonNull FloatSize3d newSize

The new proposed size of the Entity in local space.

Public methods

equals

public boolean equals(Object other)

getEntity

Added in 1.0.0-alpha05
public final @NonNull Entity getEntity()

The Entity being resized.

getNewSize

Added in 1.0.0-alpha05
public final @NonNull FloatSize3d getNewSize()

The new proposed size of the Entity in local space.

getResizeState

Added in 1.0.0-alpha05
public final int getResizeState()

The state of the resize event.

hashCode

public int hashCode()