Class ItemBase

java.lang.Object
com.hypixel.hytale.protocol.ItemBase

public class ItemBase extends Object
  • Field Details

    • NULLABLE_BIT_FIELD_SIZE

      public static final int NULLABLE_BIT_FIELD_SIZE
      See Also:
    • FIXED_BLOCK_SIZE

      public static final int FIXED_BLOCK_SIZE
      See Also:
    • VARIABLE_FIELD_COUNT

      public static final int VARIABLE_FIELD_COUNT
      See Also:
    • VARIABLE_BLOCK_START

      public static final int VARIABLE_BLOCK_START
      See Also:
    • MAX_SIZE

      public static final int MAX_SIZE
      See Also:
    • id

      @Nullable public String id
    • model

      @Nullable public String model
    • scale

      public float scale
    • texture

      @Nullable public String texture
    • animation

      @Nullable public String animation
    • playerAnimationsId

      @Nullable public String playerAnimationsId
    • usePlayerAnimations

      public boolean usePlayerAnimations
    • maxStack

      public int maxStack
    • reticleIndex

      public int reticleIndex
    • icon

      @Nullable public String icon
    • iconProperties

      @Nullable public AssetIconProperties iconProperties
    • translationProperties

      @Nullable public ItemTranslationProperties translationProperties
    • itemLevel

      public int itemLevel
    • qualityIndex

      public int qualityIndex
    • resourceTypes

      @Nullable public ItemResourceType[] resourceTypes
    • consumable

      public boolean consumable
    • variant

      public boolean variant
    • blockId

      public int blockId
    • tool

      @Nullable public ItemTool tool
    • weapon

      @Nullable public ItemWeapon weapon
    • armor

      @Nullable public ItemArmor armor
    • gliderConfig

      @Nullable public ItemGlider gliderConfig
    • utility

      @Nullable public ItemUtility utility
    • blockSelectorTool

      @Nullable public BlockSelectorToolData blockSelectorTool
    • builderToolData

      @Nullable public ItemBuilderToolData builderToolData
    • itemEntity

      @Nullable public ItemEntityConfig itemEntity
    • set

      @Nullable public String set
    • categories

      @Nullable public String[] categories
    • particles

      @Nullable public ModelParticle[] particles
    • firstPersonParticles

      @Nullable public ModelParticle[] firstPersonParticles
    • trails

      @Nullable public ModelTrail[] trails
    • light

      @Nullable public ColorLight light
    • durability

      public double durability
    • soundEventIndex

      public int soundEventIndex
    • itemSoundSetIndex

      public int itemSoundSetIndex
    • interactions

      @Nullable public Map<InteractionType,Integer> interactions
    • interactionVars

      @Nullable public Map<String,Integer> interactionVars
    • interactionConfig

      @Nullable public InteractionConfiguration interactionConfig
    • droppedItemAnimation

      @Nullable public String droppedItemAnimation
    • tagIndexes

      @Nullable public int[] tagIndexes
    • itemAppearanceConditions

      @Nullable public Map<Integer,ItemAppearanceCondition[]> itemAppearanceConditions
    • displayEntityStatsHUD

      @Nullable public int[] displayEntityStatsHUD
    • pullbackConfig

      @Nullable public ItemPullbackConfiguration pullbackConfig
    • clipsGeometry

      public boolean clipsGeometry
    • renderDeployablePreview

      public boolean renderDeployablePreview
  • Constructor Details

  • Method Details

    • deserialize

      @Nonnull public static ItemBase deserialize(@Nonnull io.netty.buffer.ByteBuf buf, int offset)
    • computeBytesConsumed

      public static int computeBytesConsumed(@Nonnull io.netty.buffer.ByteBuf buf, int offset)
    • serialize

      public void serialize(@Nonnull io.netty.buffer.ByteBuf buf)
    • computeSize

      public int computeSize()
    • validateStructure

      public static ValidationResult validateStructure(@Nonnull io.netty.buffer.ByteBuf buffer, int offset)
    • clone

      public ItemBase clone()
      Overrides:
      clone in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object