public class BedInteraction extends SimpleBlockInteraction
Class BedInteraction. Provides bedinteraction functionality for the Hytale server.
java.lang.Object > SimpleBlockInteraction > BedInteraction
Field Summary
ref
Field ref.
player
Field player.
store
Field store.
playerRefComponent
Field playerRefComponent.
playerUuidComponent
Field playerUuidComponent.
playerUuid
Field playerUuid.
chunkReference
Field chunkReference.
chunkStore
Field chunkStore.
blockComponentChunk
Field blockComponentChunk.
blockIndex
Field blockIndex.
holder
Field holder.
respawnBlock
Field respawnBlock.
ownerUUID
Field ownerUUID.
pageManager
Field pageManager.
isOwner
Field isOwner.
rawTarget
Field rawTarget.
whereWasHit
Field whereWasHit.
result
Field result.
respawnPoints
Field respawnPoints.
respawnConfig
Field respawnConfig.
radiusLimitRespawnPoint
Field radiusLimitRespawnPoint.
nearbyRespawnPoints
Field nearbyRespawnPoints.
nearbyRespawnPointList
Field nearbyRespawnPointList.
respawnPoint
Field respawnPoint.
respawnPointPosition
Field respawnPointPosition.
Method Detail
interactWithBlock
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 Worldworld@NonNullDecl final CommandBuffercommandBuffer@NonNullDecl final InteractionTypetype@NonNullDecl final InteractionContextcontext@NullableDecl final ItemStackitemInHand@NonNullDecl final Vector3ipos@NonNullDecl final CooldownHandlercooldownHandler
if
else
if
(result instanceof BlockMountAPI.Mounted)
Method if.
- Parameters:
result instanceofBlockMountAPI.Mounted
OverrideNearbyRespawnPointPage
new
OverrideNearbyRespawnPointPage
(playerRefComponent, type, pos, respawnBlock, nearbyRespawnPoints, radiusLimitRespawnPoint)
Method OverrideNearbyRespawnPointPage.
- Parameters:
playerRefComponentplayerRefComponenttypetypeposposrespawnBlockrespawnBlocknearbyRespawnPointsnearbyRespawnPointsradiusLimitRespawnPointradiusLimitRespawnPoint
SelectOverrideRespawnPointPage
new
SelectOverrideRespawnPointPage
(playerRefComponent, type, pos, respawnBlock, respawnPoints)
Method SelectOverrideRespawnPointPage.
- Parameters:
playerRefComponentplayerRefComponenttypetypeposposrespawnBlockrespawnBlockrespawnPointsrespawnPoints
SetNameRespawnPointPage
new
SetNameRespawnPointPage
(playerRefComponent, type, pos, respawnBlock)
Method SetNameRespawnPointPage.
- Parameters:
playerRefComponentplayerRefComponenttypetypeposposrespawnBlockrespawnBlock
simulateInteractWithBlock
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 InteractionTypetype@NonNullDecl final InteractionContextcontext@NullableDecl final ItemStackitemInHand@NonNullDecl final Worldworld@NonNullDecl final Vector3itargetBlock
getNearbySavedRespawnPoints
PlayerRespawnPointData[]
getNearbySavedRespawnPoints
(@Nonnull final Vector3i currentRespawnPointPosition, @Nonnull final RespawnBlock respawnBlock, @Nullable final PlayerRespawnPointData[] respawnPoints, final int radiusLimitRespawnPoint)
Method getNearbySavedRespawnPoints.
- Parameters:
@Nonnull final Vector3icurrentRespawnPointPosition@Nonnull final RespawnBlockrespawnBlock@Nullable final PlayerRespawnPointData[]respawnPointsfinal intradiusLimitRespawnPoint
toString
String
toString
()
Method toString.