Package com.hypixel.hytale.protocol
Class Model
java.lang.Object
com.hypixel.hytale.protocol.Model
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatstatic final intstatic final intstatic final intfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionModel()Model(String assetId, String path, String texture, String gradientSet, String gradientId, CameraSettings camera, float scale, float eyeHeight, float crouchOffset, Map<String, AnimationSet> animationSets, ModelAttachment[] attachments, Hitbox hitbox, ModelParticle[] particles, ModelTrail[] trails, ColorLight light, Map<String, DetailBox[]> detailBoxes, Phobia phobia, Model phobiaModel) -
Method Summary
Modifier and TypeMethodDescriptionclone()static intcomputeBytesConsumed(io.netty.buffer.ByteBuf buf, int offset) intstatic Modeldeserialize(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:
-
assetId
-
path
-
texture
-
gradientSet
-
gradientId
-
camera
-
scale
public float scale -
eyeHeight
public float eyeHeight -
crouchOffset
public float crouchOffset -
animationSets
-
attachments
-
hitbox
-
particles
-
trails
-
light
-
detailBoxes
-
phobia
-
phobiaModel
-
-
Constructor Details
-
Model
public Model() -
Model
public Model(@Nullable String assetId, @Nullable String path, @Nullable String texture, @Nullable String gradientSet, @Nullable String gradientId, @Nullable CameraSettings camera, float scale, float eyeHeight, float crouchOffset, @Nullable Map<String, AnimationSet> animationSets, @Nullable ModelAttachment[] attachments, @Nullable Hitbox hitbox, @Nullable ModelParticle[] particles, @Nullable ModelTrail[] trails, @Nullable ColorLight light, @Nullable Map<String, DetailBox[]> detailBoxes, @Nonnull Phobia phobia, @Nullable Model phobiaModel) -
Model
-
-
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()
-