Class UseCaptureCrateInteraction
java.lang.Object
com.hypixel.hytale.server.core.modules.interaction.interaction.config.Interaction
com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInteraction
com.hypixel.hytale.server.core.modules.interaction.interaction.config.client.SimpleBlockInteraction
com.hypixel.hytale.builtin.adventure.farming.interactions.UseCaptureCrateInteraction
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,,IndexedLookupTableAssetMap<String, Interaction>> NetworkSerializable<Interaction>,Operation
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hypixel.hytale.server.core.modules.interaction.interaction.operation.Operation
Operation.NestedOperation -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected int[]static final BuilderCodec<UseCaptureCrateInteraction> protected StringFields inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInteraction
failed, nextFields inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.Interaction
ABSTRACT_CODEC, camera, cancelOnItemChange, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, CONTEXT_META_REGISTRY, DAMAGE, data, effects, HIT_DETAIL, HIT_LOCATION, horizontalSpeedMultiplier, id, META_REGISTRY, rules, runTime, settings, TARGET_BLOCK, TARGET_BLOCK_RAW, TARGET_ENTITY, TARGET_SLOT, TIME_SHIFT, unknown, VALIDATOR_CACHE, viewDistance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinteractWithBlock(World world, CommandBuffer<EntityStore> commandBuffer, InteractionType type, InteractionContext context, ItemStack itemInHand, Vector3i targetBlock, CooldownHandler cooldownHandler) protected voidsimulateInteractWithBlock(InteractionType type, InteractionContext context, ItemStack itemInHand, World world, Vector3i targetBlock) protected voidtick0(boolean firstRun, float time, InteractionType type, InteractionContext context, CooldownHandler cooldownHandler) Methods inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.client.SimpleBlockInteraction
computeCurrentBlockSyncData, configurePacket, generatePacket, getWaitForDataFrom, needsRemoteSync, simulateTick0, toStringMethods inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInteraction
compile, walkMethods inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.Interaction
failed, getAnimationDuration, getAssetMap, getAssetStore, getEffects, getHorizontalSpeedMultiplier, getId, getInteractionIdOrUnknown, getInteractionOrUnknown, getRules, getRunTime, getSettings, getViewDistance, handle, isCancelOnItemChange, isUnknown, mapForkChain, needsRemoteSync, simulateTick, tick, toPacketMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.core.modules.interaction.interaction.operation.Operation
getInnerOperation, getTags
-
Field Details
-
CODEC
-
acceptedNpcGroupIds
-
acceptedNpcGroupIndexes
protected int[] acceptedNpcGroupIndexes -
fullIcon
-
-
Constructor Details
-
UseCaptureCrateInteraction
public UseCaptureCrateInteraction()
-
-
Method Details
-
tick0
protected void tick0(boolean firstRun, float time, @NonNullDecl InteractionType type, @NonNullDecl InteractionContext context, @NonNullDecl CooldownHandler cooldownHandler) - Overrides:
tick0in classSimpleBlockInteraction
-
interactWithBlock
protected void interactWithBlock(@NonNullDecl World world, @NonNullDecl CommandBuffer<EntityStore> commandBuffer, @NonNullDecl InteractionType type, @NonNullDecl InteractionContext context, @NullableDecl ItemStack itemInHand, @NonNullDecl Vector3i targetBlock, @NonNullDecl CooldownHandler cooldownHandler) - Specified by:
interactWithBlockin classSimpleBlockInteraction
-
simulateInteractWithBlock
protected void simulateInteractWithBlock(@NonNullDecl InteractionType type, @NonNullDecl InteractionContext context, @NullableDecl ItemStack itemInHand, @NonNullDecl World world, @NonNullDecl Vector3i targetBlock) - Specified by:
simulateInteractWithBlockin classSimpleBlockInteraction
-