BedInteraction

public class BedInteraction extends SimpleBlockInteraction

Class BedInteraction. Provides bedinteraction functionality for the Hytale server.

java.lang.Object > SimpleBlockInteraction > BedInteraction

Field Summary

ref

final Ref ref

Field ref.

player

final Player player

Field player.

store

final Store store

Field store.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

playerUuidComponent

final UUIDComponent playerUuidComponent

Field playerUuidComponent.

playerUuid

final UUID playerUuid

Field playerUuid.

chunkReference

final Ref chunkReference

Field chunkReference.

chunkStore

final Store chunkStore

Field chunkStore.

blockComponentChunk

final BlockComponentChunk blockComponentChunk

Field blockComponentChunk.

blockIndex

final int blockIndex

Field blockIndex.

holder

final Holder holder

Field holder.

respawnBlock

final RespawnBlock respawnBlock

Field respawnBlock.

ownerUUID

final UUID ownerUUID

Field ownerUUID.

pageManager

final PageManager pageManager

Field pageManager.

isOwner

final boolean isOwner

Field isOwner.

rawTarget

final BlockPosition rawTarget

Field rawTarget.

whereWasHit

final Vector3f whereWasHit

Field whereWasHit.

result

final BlockMountAPI.BlockMountResult result

Field result.

respawnPoints

final PlayerRespawnPointData[] respawnPoints

Field respawnPoints.

respawnConfig

final RespawnConfig respawnConfig

Field respawnConfig.

radiusLimitRespawnPoint

final int radiusLimitRespawnPoint

Field radiusLimitRespawnPoint.

nearbyRespawnPoints

final PlayerRespawnPointData[] nearbyRespawnPoints

Field nearbyRespawnPoints.

nearbyRespawnPointList

final ObjectArrayList nearbyRespawnPointList

Field nearbyRespawnPointList.

respawnPoint

final PlayerRespawnPointData respawnPoint

Field respawnPoint.

respawnPointPosition

final Vector3i respawnPointPosition

Field respawnPointPosition.

Method Detail

interactWithBlock

protected void interactWithBlock (@NonNullDecl final World world, @NonNullDecl final CommandBuffer commandBuffer, @NonNullDecl final InteractionType type, @NonNullDecl final InteractionContext context, @NullableDecl final ItemStack itemInHand, @NonNullDecl final Vector3i pos, @NonNullDecl final CooldownHandler cooldownHandler)

Method interactWithBlock.

Parameters:
@NonNullDecl final World world
@NonNullDecl final CommandBuffer commandBuffer
@NonNullDecl final InteractionType type
@NonNullDecl final InteractionContext context
@NullableDecl final ItemStack itemInHand
@NonNullDecl final Vector3i pos
@NonNullDecl final CooldownHandler cooldownHandler

if

public else if (result instanceof BlockMountAPI.Mounted)

Method if.

Parameters:
result instanceof BlockMountAPI.Mounted

OverrideNearbyRespawnPointPage

public new OverrideNearbyRespawnPointPage (playerRefComponent, type, pos, respawnBlock, nearbyRespawnPoints, radiusLimitRespawnPoint)

Method OverrideNearbyRespawnPointPage.

Parameters:
playerRefComponent playerRefComponent
type type
pos pos
respawnBlock respawnBlock
nearbyRespawnPoints nearbyRespawnPoints
radiusLimitRespawnPoint radiusLimitRespawnPoint

SelectOverrideRespawnPointPage

public new SelectOverrideRespawnPointPage (playerRefComponent, type, pos, respawnBlock, respawnPoints)

Method SelectOverrideRespawnPointPage.

Parameters:
playerRefComponent playerRefComponent
type type
pos pos
respawnBlock respawnBlock
respawnPoints respawnPoints

SetNameRespawnPointPage

public new SetNameRespawnPointPage (playerRefComponent, type, pos, respawnBlock)

Method SetNameRespawnPointPage.

Parameters:
playerRefComponent playerRefComponent
type type
pos pos
respawnBlock respawnBlock

simulateInteractWithBlock

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

Method simulateInteractWithBlock.

Parameters:
@NonNullDecl final InteractionType type
@NonNullDecl final InteractionContext context
@NullableDecl final ItemStack itemInHand
@NonNullDecl final World world
@NonNullDecl final Vector3i targetBlock

getNearbySavedRespawnPoints

private PlayerRespawnPointData[] getNearbySavedRespawnPoints (@Nonnull final Vector3i currentRespawnPointPosition, @Nonnull final RespawnBlock respawnBlock, @Nullable final PlayerRespawnPointData[] respawnPoints, final int radiusLimitRespawnPoint)

Method getNearbySavedRespawnPoints.

Parameters:
@Nonnull final Vector3i currentRespawnPointPosition
@Nonnull final RespawnBlock respawnBlock
@Nullable final PlayerRespawnPointData[] respawnPoints
final int radiusLimitRespawnPoint

toString

public String toString ()

Method toString.