EnterPortalInteraction

public class EnterPortalInteraction extends SimpleBlockInteraction

Class EnterPortalInteraction. Provides enterportalinteraction functionality for the Hytale server.

java.lang.Object > SimpleBlockInteraction > EnterPortalInteraction

Field Summary

ref

final Ref ref

Field ref.

playerComponent

final Player playerComponent

Field playerComponent.

portalDevice

final PortalDevice portalDevice

Field portalDevice.

chunk

final WorldChunk chunk

Field chunk.

blockType

final BlockType blockType

Field blockType.

rotation

final RotationTuple rotation

Field rotation.

yaw

final double yaw

Field yaw.

returnTransform

final Transform returnTransform

Field returnTransform.

targetWorld

final World targetWorld

Field targetWorld.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

playerUuid

final UUID playerUuid

Field playerUuid.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

blockEntityRef

final Ref blockEntityRef

Field blockEntityRef.

activePage

final PortalDeviceActivePage activePage

Field activePage.

portalWorld

final PortalWorld portalWorld

Field portalWorld.

Method Detail

getWaitForDataFrom

public WaitForDataFrom getWaitForDataFrom ()

Method getWaitForDataFrom.

interactWithBlock

protected void interactWithBlock (@Nonnull final World world, @Nonnull final CommandBuffer commandBuffer, @Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nullable final ItemStack itemInHand, @Nonnull final Vector3i targetBlock, @Nonnull final CooldownHandler cooldownHandler)

Method interactWithBlock.

Parameters:
@Nonnull final World world
@Nonnull final CommandBuffer commandBuffer
@Nonnull final InteractionType type
@Nonnull final InteractionContext context
@Nullable final ItemStack itemInHand
@Nonnull final Vector3i targetBlock
@Nonnull final CooldownHandler cooldownHandler

Transform

public new Transform (targetBlock.x + 0.5, targetBlock.y + 0.5, targetBlock.z + 0.5, 0.0f, (float)

Method Transform.

Parameters:
targetBlock.z + 0.5
0.0f 0.0f
(float (float

PortalDeviceActivePage

public new PortalDeviceActivePage (playerRefComponent, portalDevice.getConfig()

Method PortalDeviceActivePage.

Parameters:
playerRefComponent playerRefComponent
portalDevice.getConfig( portalDevice.getConfig(

fetchTargetWorldState

static CompletableFuture fetchTargetWorldState (@Nonnull final World world, @Nonnull final UUID playerId)

Method fetchTargetWorldState.

Parameters:
@Nonnull final World world
@Nonnull final UUID playerId

if

public else if (portalWorld.getSpawnPoint()

Method if.

Parameters:
portalWorld.getSpawnPoint( portalWorld.getSpawnPoint(

simulateInteractWithBlock

protected void simulateInteractWithBlock (@Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nullable final ItemStack itemInHand, @Nonnull final World world, @Nonnull final Vector3i targetBlock)

Method simulateInteractWithBlock.

Parameters:
@Nonnull final InteractionType type
@Nonnull final InteractionContext context
@Nullable final ItemStack itemInHand
@Nonnull final World world
@Nonnull final Vector3i targetBlock