Class BlockType

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

public class BlockType 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:
    • item

      @Nullable public String item
    • name

      @Nullable public String name
    • unknown

      public boolean unknown
    • drawType

      @Nonnull public DrawType drawType
    • material

      @Nonnull public BlockMaterial material
    • opacity

      @Nonnull public Opacity opacity
    • shaderEffect

      @Nullable public ShaderType[] shaderEffect
    • hitbox

      public int hitbox
    • interactionHitbox

      public int interactionHitbox
    • model

      @Nullable public String model
    • modelTexture

      @Nullable public ModelTexture[] modelTexture
    • modelScale

      public float modelScale
    • modelAnimation

      @Nullable public String modelAnimation
    • looping

      public boolean looping
    • maxSupportDistance

      public int maxSupportDistance
    • blockSupportsRequiredFor

      @Nonnull public BlockSupportsRequiredForType blockSupportsRequiredFor
    • support

      @Nullable public Map<BlockNeighbor,RequiredBlockFaceSupport[]> support
    • supporting

      @Nullable public Map<BlockNeighbor,BlockFaceSupport[]> supporting
    • requiresAlphaBlending

      public boolean requiresAlphaBlending
    • cubeTextures

      @Nullable public BlockTextures[] cubeTextures
    • cubeSideMaskTexture

      @Nullable public String cubeSideMaskTexture
    • cubeShadingMode

      @Nonnull public ShadingMode cubeShadingMode
    • randomRotation

      @Nonnull public RandomRotation randomRotation
    • variantRotation

      @Nonnull public VariantRotation variantRotation
    • rotationYawPlacementOffset

      @Nonnull public Rotation rotationYawPlacementOffset
    • blockSoundSetIndex

      public int blockSoundSetIndex
    • ambientSoundEventIndex

      public int ambientSoundEventIndex
    • particles

      @Nullable public ModelParticle[] particles
    • blockParticleSetId

      @Nullable public String blockParticleSetId
    • blockBreakingDecalId

      @Nullable public String blockBreakingDecalId
    • particleColor

      @Nullable public Color particleColor
    • light

      @Nullable public ColorLight light
    • tint

      @Nullable public Tint tint
    • biomeTint

      @Nullable public Tint biomeTint
    • group

      public int group
    • transitionTexture

      @Nullable public String transitionTexture
    • transitionToGroups

      @Nullable public int[] transitionToGroups
    • movementSettings

      @Nullable public BlockMovementSettings movementSettings
    • flags

      @Nullable public BlockFlags flags
    • interactionHint

      @Nullable public String interactionHint
    • gathering

      @Nullable public BlockGathering gathering
    • placementSettings

      @Nullable public BlockPlacementSettings placementSettings
    • display

      @Nullable public ModelDisplay display
    • rail

      @Nullable public RailConfig rail
    • ignoreSupportWhenPlaced

      public boolean ignoreSupportWhenPlaced
    • interactions

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

      @Nullable public Map<String,Integer> states
    • transitionToTag

      public int transitionToTag
    • tagIndexes

      @Nullable public int[] tagIndexes
    • bench

      @Nullable public Bench bench
    • connectedBlockRuleSet

      @Nullable public ConnectedBlockRuleSet connectedBlockRuleSet
  • Constructor Details

  • Method Details

    • deserialize

      @Nonnull public static BlockType 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 BlockType 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