Package com.hypixel.hytale.protocol
Class BlockType
java.lang.Object
com.hypixel.hytale.protocol.BlockType
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintstatic final intintintbooleanintbooleanstatic final intintfloatstatic final intbooleanint[]int[]intbooleanstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionBlockType(String item, String name, boolean unknown, DrawType drawType, BlockMaterial material, Opacity opacity, ShaderType[] shaderEffect, int hitbox, int interactionHitbox, String model, ModelTexture[] modelTexture, float modelScale, String modelAnimation, boolean looping, int maxSupportDistance, BlockSupportsRequiredForType blockSupportsRequiredFor, Map<BlockNeighbor, RequiredBlockFaceSupport[]> support, Map<BlockNeighbor, BlockFaceSupport[]> supporting, boolean requiresAlphaBlending, BlockTextures[] cubeTextures, String cubeSideMaskTexture, ShadingMode cubeShadingMode, RandomRotation randomRotation, VariantRotation variantRotation, Rotation rotationYawPlacementOffset, int blockSoundSetIndex, int ambientSoundEventIndex, ModelParticle[] particles, String blockParticleSetId, String blockBreakingDecalId, Color particleColor, ColorLight light, Tint tint, Tint biomeTint, int group, String transitionTexture, int[] transitionToGroups, BlockMovementSettings movementSettings, BlockFlags flags, String interactionHint, BlockGathering gathering, BlockPlacementSettings placementSettings, ModelDisplay display, RailConfig rail, boolean ignoreSupportWhenPlaced, Map<InteractionType, Integer> interactions, Map<String, Integer> states, int transitionToTag, int[] tagIndexes, Bench bench, ConnectedBlockRuleSet connectedBlockRuleSet) -
Method Summary
Modifier and TypeMethodDescriptionclone()static intcomputeBytesConsumed(io.netty.buffer.ByteBuf buf, int offset) intstatic BlockTypedeserialize(io.netty.buffer.ByteBuf buf, int offset) booleaninthashCode()voidserialize(io.netty.buffer.ByteBuf buf) static ValidationResultvalidateStructure(io.netty.buffer.ByteBuf buffer, int offset)
-
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
-
name
-
unknown
public boolean unknown -
drawType
-
material
-
opacity
-
shaderEffect
-
hitbox
public int hitbox -
interactionHitbox
public int interactionHitbox -
model
-
modelTexture
-
modelScale
public float modelScale -
modelAnimation
-
looping
public boolean looping -
maxSupportDistance
public int maxSupportDistance -
blockSupportsRequiredFor
-
support
-
supporting
-
requiresAlphaBlending
public boolean requiresAlphaBlending -
cubeTextures
-
cubeSideMaskTexture
-
cubeShadingMode
-
randomRotation
-
variantRotation
-
rotationYawPlacementOffset
-
blockSoundSetIndex
public int blockSoundSetIndex -
ambientSoundEventIndex
public int ambientSoundEventIndex -
particles
-
blockParticleSetId
-
blockBreakingDecalId
-
particleColor
-
light
-
tint
-
biomeTint
-
group
public int group -
transitionTexture
-
transitionToGroups
@Nullable public int[] transitionToGroups -
movementSettings
-
flags
-
interactionHint
-
gathering
-
placementSettings
-
display
-
rail
-
ignoreSupportWhenPlaced
public boolean ignoreSupportWhenPlaced -
interactions
-
states
-
transitionToTag
public int transitionToTag -
tagIndexes
@Nullable public int[] tagIndexes -
bench
-
connectedBlockRuleSet
-
-
Constructor Details
-
BlockType
public BlockType() -
BlockType
public BlockType(@Nullable String item, @Nullable String name, boolean unknown, @Nonnull DrawType drawType, @Nonnull BlockMaterial material, @Nonnull Opacity opacity, @Nullable ShaderType[] shaderEffect, int hitbox, int interactionHitbox, @Nullable String model, @Nullable ModelTexture[] modelTexture, float modelScale, @Nullable String modelAnimation, boolean looping, int maxSupportDistance, @Nonnull BlockSupportsRequiredForType blockSupportsRequiredFor, @Nullable Map<BlockNeighbor, RequiredBlockFaceSupport[]> support, @Nullable Map<BlockNeighbor, BlockFaceSupport[]> supporting, boolean requiresAlphaBlending, @Nullable BlockTextures[] cubeTextures, @Nullable String cubeSideMaskTexture, @Nonnull ShadingMode cubeShadingMode, @Nonnull RandomRotation randomRotation, @Nonnull VariantRotation variantRotation, @Nonnull Rotation rotationYawPlacementOffset, int blockSoundSetIndex, int ambientSoundEventIndex, @Nullable ModelParticle[] particles, @Nullable String blockParticleSetId, @Nullable String blockBreakingDecalId, @Nullable Color particleColor, @Nullable ColorLight light, @Nullable Tint tint, @Nullable Tint biomeTint, int group, @Nullable String transitionTexture, @Nullable int[] transitionToGroups, @Nullable BlockMovementSettings movementSettings, @Nullable BlockFlags flags, @Nullable String interactionHint, @Nullable BlockGathering gathering, @Nullable BlockPlacementSettings placementSettings, @Nullable ModelDisplay display, @Nullable RailConfig rail, boolean ignoreSupportWhenPlaced, @Nullable Map<InteractionType, Integer> interactions, @Nullable Map<String, Integer> states, int transitionToTag, @Nullable int[] tagIndexes, @Nullable Bench bench, @Nullable ConnectedBlockRuleSet connectedBlockRuleSet) -
BlockType
-
-
Method Details
-
deserialize
-
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
-
equals
-
hashCode
public int hashCode()
-