Class ItemFrameInteraction

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.mrbysco.itemframes.interaction.ItemFrameInteraction
All Implemented Interfaces:
com.hypixel.hytale.assetstore.JsonAsset<String>, com.hypixel.hytale.assetstore.map.JsonAssetWithMap<String, com.hypixel.hytale.assetstore.map.IndexedLookupTableAssetMap<String, com.hypixel.hytale.server.core.modules.interaction.interaction.config.Interaction>>, com.hypixel.hytale.server.core.io.NetworkSerializable<com.hypixel.hytale.protocol.Interaction>, com.hypixel.hytale.server.core.modules.interaction.interaction.operation.Operation

public class ItemFrameInteraction extends com.hypixel.hytale.server.core.modules.interaction.interaction.config.client.SimpleBlockInteraction
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.hypixel.hytale.server.core.modules.interaction.interaction.operation.Operation

    com.hypixel.hytale.server.core.modules.interaction.interaction.operation.Operation.NestedOperation
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.hypixel.hytale.codec.builder.BuilderCodec<ItemFrameInteraction>
     

    Fields inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInteraction

    failed, next

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.hypixel.hytale.protocol.WaitForDataFrom
     
    protected void
    interactWithBlock(com.hypixel.hytale.server.core.universe.world.World world, com.hypixel.hytale.component.CommandBuffer<com.hypixel.hytale.server.core.universe.world.storage.EntityStore> commandBuffer, com.hypixel.hytale.protocol.InteractionType type, com.hypixel.hytale.server.core.entity.InteractionContext context, com.hypixel.hytale.server.core.inventory.ItemStack itemStack, com.hypixel.hytale.math.vector.Vector3i targetBlock, com.hypixel.hytale.server.core.modules.interaction.interaction.CooldownHandler cooldownHandler)
     
    protected void
    simulateInteractWithBlock(com.hypixel.hytale.protocol.InteractionType type, com.hypixel.hytale.server.core.entity.InteractionContext interactionContext, com.hypixel.hytale.server.core.inventory.ItemStack itemStack, com.hypixel.hytale.server.core.universe.world.World world, com.hypixel.hytale.math.vector.Vector3i targetBlock)
     

    Methods inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.client.SimpleBlockInteraction

    computeCurrentBlockSyncData, configurePacket, generatePacket, needsRemoteSync, simulateTick0, tick0, toString

    Methods inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInteraction

    compile, walk

    Methods 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, toPacket

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.hypixel.hytale.server.core.modules.interaction.interaction.operation.Operation

    getInnerOperation, getTags
  • Field Details

    • CODEC

      public static final com.hypixel.hytale.codec.builder.BuilderCodec<ItemFrameInteraction> CODEC
  • Constructor Details

    • ItemFrameInteraction

      public ItemFrameInteraction()
  • Method Details

    • getWaitForDataFrom

      @Nonnull public com.hypixel.hytale.protocol.WaitForDataFrom getWaitForDataFrom()
      Specified by:
      getWaitForDataFrom in interface com.hypixel.hytale.server.core.modules.interaction.interaction.operation.Operation
      Overrides:
      getWaitForDataFrom in class com.hypixel.hytale.server.core.modules.interaction.interaction.config.client.SimpleBlockInteraction
    • interactWithBlock

      protected void interactWithBlock(@Nonnull com.hypixel.hytale.server.core.universe.world.World world, @Nonnull com.hypixel.hytale.component.CommandBuffer<com.hypixel.hytale.server.core.universe.world.storage.EntityStore> commandBuffer, @Nonnull com.hypixel.hytale.protocol.InteractionType type, @Nonnull com.hypixel.hytale.server.core.entity.InteractionContext context, @Nullable com.hypixel.hytale.server.core.inventory.ItemStack itemStack, @Nonnull com.hypixel.hytale.math.vector.Vector3i targetBlock, @Nonnull com.hypixel.hytale.server.core.modules.interaction.interaction.CooldownHandler cooldownHandler)
      Specified by:
      interactWithBlock in class com.hypixel.hytale.server.core.modules.interaction.interaction.config.client.SimpleBlockInteraction
    • simulateInteractWithBlock

      protected void simulateInteractWithBlock(@Nonnull com.hypixel.hytale.protocol.InteractionType type, @Nonnull com.hypixel.hytale.server.core.entity.InteractionContext interactionContext, @Nullable com.hypixel.hytale.server.core.inventory.ItemStack itemStack, @Nonnull com.hypixel.hytale.server.core.universe.world.World world, @Nonnull com.hypixel.hytale.math.vector.Vector3i targetBlock)
      Specified by:
      simulateInteractWithBlock in class com.hypixel.hytale.server.core.modules.interaction.interaction.config.client.SimpleBlockInteraction