public class UseCaptureCrateInteraction extends SimpleBlockInteraction
Class UseCaptureCrateInteraction. Provides usecapturecrateinteraction functionality for the Hytale server.
java.lang.Object > SimpleBlockInteraction > UseCaptureCrateInteraction
Field Summary
acceptedNpcGroupIds
protected
String[]
acceptedNpcGroupIds
Field acceptedNpcGroupIds.
acceptedNpcGroupIndexes
protected
int[]
acceptedNpcGroupIndexes
Field acceptedNpcGroupIndexes.
fullIcon
protected
String
fullIcon
Field fullIcon.
commandBuffer
final
CommandBuffer
commandBuffer
Field commandBuffer.
item
final
ItemStack
item
Field item.
playerRef
final
Ref
playerRef
Field playerRef.
playerEntity
final
LivingEntity
playerEntity
Field playerEntity.
playerInventory
final
Inventory
playerInventory
Field playerInventory.
activeHotbarSlot
final
byte
activeHotbarSlot
Field activeHotbarSlot.
inHandItemStack
final
ItemStack
inHandItemStack
Field inHandItemStack.
existingMeta
final
CapturedNPCMetadata
existingMeta
Field existingMeta.
targetEntity
final
Ref
targetEntity
Field targetEntity.
npc
final
NPCEntity
npc
Field npc.
tagSetPlugin
final
TagSetPlugin.TagSetLookup
tagSetPlugin
Field tagSetPlugin.
persistentModel
final
PersistentModel
persistentModel
Field persistentModel.
modelAsset
final
ModelAsset
modelAsset
Field modelAsset.
meta
final
CapturedNPCMetadata
meta
Field meta.
npcName
final
String
npcName
Field npcName.
itemWithNPC
final
ItemStack
itemWithNPC
Field itemWithNPC.
pos
final
BlockPosition
pos
Field pos.
worldChunk
final
WorldChunk
worldChunk
Field worldChunk.
noMetaItemStack
final
ItemStack
noMetaItemStack
Field noMetaItemStack.
chunkStore
final
Store
chunkStore
Field chunkStore.
coopBlockState
final
CoopBlock
coopBlockState
Field coopBlockState.
worldTimeResource
final
WorldTimeResource
worldTimeResource
Field worldTimeResource.
spawnPos
final
Vector3d
spawnPos
Field spawnPos.
blockFace
final
BlockFace
blockFace
Field blockFace.
npcModule
final
NPCPlugin
npcModule
Field npcModule.
store
final
Store
store
Field store.
roleIndex
final
int
roleIndex
Field roleIndex.
Method Detail
tick0
protected
void
tick0
(final boolean firstRun, final float time, @NonNullDecl final InteractionType type, @NonNullDecl final InteractionContext context, @NonNullDecl final CooldownHandler cooldownHandler)
Method tick0.
- Parameters:
final booleanfirstRunfinal floattime@NonNullDecl final InteractionTypetype@NonNullDecl final InteractionContextcontext@NonNullDecl final CooldownHandlercooldownHandler
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 targetBlock, @NonNullDecl final CooldownHandler cooldownHandler)
Method interactWithBlock.
- Parameters:
@NonNullDecl final Worldworld@NonNullDecl final CommandBuffercommandBuffer@NonNullDecl final InteractionTypetype@NonNullDecl final InteractionContextcontext@NullableDecl final ItemStackitemInHand@NonNullDecl final Vector3itargetBlock@NonNullDecl final CooldownHandlercooldownHandler
Vector3d
public
new
Vector3d
(pos.x, pos.y, pos.z)
Method Vector3d.
- Parameters:
pos.xpos.xpos.ypos.ypos.zpos.z
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 InteractionTypetype@NonNullDecl final InteractionContextcontext@NullableDecl final ItemStackitemInHand@NonNullDecl final Worldworld@NonNullDecl final Vector3itargetBlock