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
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 Worldworld@Nonnull final CommandBuffercommandBuffer@Nonnull final InteractionTypetype@Nonnull final InteractionContextcontext@Nullable final ItemStackitemInHand@Nonnull final Vector3itargetBlock@Nonnull final CooldownHandlercooldownHandler
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.50.0f0.0f(float(float
PortalDeviceActivePage
public
new
PortalDeviceActivePage
(playerRefComponent, portalDevice.getConfig()
Method PortalDeviceActivePage.
- Parameters:
playerRefComponentplayerRefComponentportalDevice.getConfig(portalDevice.getConfig(
fetchTargetWorldState
static
CompletableFuture
fetchTargetWorldState
(@Nonnull final World world, @Nonnull final UUID playerId)
Method fetchTargetWorldState.
- Parameters:
@Nonnull final Worldworld@Nonnull final UUIDplayerId
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 InteractionTypetype@Nonnull final InteractionContextcontext@Nullable final ItemStackitemInHand@Nonnull final Worldworld@Nonnull final Vector3itargetBlock