Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getAssetId(MemorySegment)
- getAssetId(MemorySegment, int)
- getPath(MemorySegment)
- getPath(MemorySegment, int)
- getTexture(MemorySegment)
- getTexture(MemorySegment, int)
- getGradientSet(MemorySegment)
- getGradientSet(MemorySegment, int)
- getGradientId(MemorySegment)
- getGradientId(MemorySegment, int)
- getCamera(MemorySegment)
- getCamera(MemorySegment, int)
- getScale(MemorySegment)
- getScale(MemorySegment, int)
- getEyeHeight(MemorySegment)
- getEyeHeight(MemorySegment, int)
- getCrouchOffset(MemorySegment)
- getCrouchOffset(MemorySegment, int)
- getSittingOffset(MemorySegment)
- getSittingOffset(MemorySegment, int)
- getSleepingOffset(MemorySegment)
- getSleepingOffset(MemorySegment, int)
- getAnimationSets(MemorySegment)
- getAnimationSets(MemorySegment, int)
- getAttachments(MemorySegment)
- getAttachments(MemorySegment, int)
- getHitbox(MemorySegment)
- getHitbox(MemorySegment, int)
- getParticles(MemorySegment)
- getParticles(MemorySegment, int)
- getTrails(MemorySegment)
- getTrails(MemorySegment, int)
- getLight(MemorySegment)
- getLight(MemorySegment, int)
- getDetailBoxes(MemorySegment)
- getDetailBoxes(MemorySegment, int)
- getPhobia(MemorySegment)
- getPhobia(MemorySegment, int)
- getPhobiaModel(MemorySegment)
- getPhobiaModel(MemorySegment, int)
- hasHitbox(MemorySegment, int)
- hasLight(MemorySegment, int)
- hasAssetId(MemorySegment, int)
- hasPath(MemorySegment, int)
- hasTexture(MemorySegment, int)
- hasGradientSet(MemorySegment, int)
- hasGradientId(MemorySegment, int)
- hasCamera(MemorySegment, int)
- hasAnimationSets(MemorySegment, int)
- hasAttachments(MemorySegment, int)
- hasParticles(MemorySegment, int)
- hasTrails(MemorySegment, int)
- hasDetailBoxes(MemorySegment, int)
- hasPhobiaModel(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class Model
java.lang.Object
com.hypixel.hytale.protocol.Model
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatstatic final intstatic final intstatic final intfloatfloatfloatstatic 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, float sittingOffset, float sleepingOffset, 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()intbooleanstatic Map<String, AnimationSet> static Map<String, AnimationSet> getAnimationSets(MemorySegment mem, int offset) static StringgetAssetId(MemorySegment mem) static StringgetAssetId(MemorySegment mem, int offset) static ModelAttachment[]static ModelAttachment[]getAttachments(MemorySegment mem, int offset) static CameraSettingsgetCamera(MemorySegment mem) static CameraSettingsgetCamera(MemorySegment mem, int offset) static floatstatic floatgetCrouchOffset(MemorySegment mem, int offset) getDetailBoxes(MemorySegment mem, int offset) static floatstatic floatgetEyeHeight(MemorySegment mem, int offset) static Stringstatic StringgetGradientId(MemorySegment mem, int offset) static Stringstatic StringgetGradientSet(MemorySegment mem, int offset) static HitboxgetHitbox(MemorySegment mem) static HitboxgetHitbox(MemorySegment mem, int offset) static ColorLightgetLight(MemorySegment mem) static ColorLightgetLight(MemorySegment mem, int offset) static ModelParticle[]static ModelParticle[]getParticles(MemorySegment mem, int offset) static StringgetPath(MemorySegment mem) static StringgetPath(MemorySegment mem, int offset) static PhobiagetPhobia(MemorySegment mem) static PhobiagetPhobia(MemorySegment mem, int offset) static Modelstatic ModelgetPhobiaModel(MemorySegment mem, int offset) static floatgetScale(MemorySegment mem) static floatgetScale(MemorySegment mem, int offset) static floatstatic floatgetSittingOffset(MemorySegment mem, int offset) static floatstatic floatgetSleepingOffset(MemorySegment mem, int offset) static StringgetTexture(MemorySegment mem) static StringgetTexture(MemorySegment mem, int offset) static ModelTrail[]getTrails(MemorySegment mem) static ModelTrail[]getTrails(MemorySegment mem, int offset) static booleanhasAnimationSets(MemorySegment mem, int offset) static booleanhasAssetId(MemorySegment mem, int offset) static booleanhasAttachments(MemorySegment mem, int offset) static booleanhasCamera(MemorySegment mem, int offset) static booleanhasDetailBoxes(MemorySegment mem, int offset) static booleanhasGradientId(MemorySegment mem, int offset) static booleanhasGradientSet(MemorySegment mem, int offset) inthashCode()static booleanhasHitbox(MemorySegment mem, int offset) static booleanhasLight(MemorySegment mem, int offset) static booleanhasParticles(MemorySegment mem, int offset) static booleanhasPath(MemorySegment mem, int offset) static booleanhasPhobiaModel(MemorySegment mem, int offset) static booleanhasTexture(MemorySegment mem, int offset) static booleanhasTrails(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ModeltoObject(MemorySegment mem) static ModeltoObject(MemorySegment mem, int offset) static ModeltoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one Model and reports the end of its encoding through the cursor.
-
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 -
sittingOffset
public float sittingOffset -
sleepingOffset
public float sleepingOffset -
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, float sittingOffset, float sleepingOffset, @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
-
requireBounds
Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment. -
getAssetId
-
getAssetId
-
getPath
-
getPath
-
getTexture
-
getTexture
-
getGradientSet
-
getGradientSet
-
getGradientId
-
getGradientId
-
getCamera
-
getCamera
-
getScale
-
getScale
-
getEyeHeight
-
getEyeHeight
-
getCrouchOffset
-
getCrouchOffset
-
getSittingOffset
-
getSittingOffset
-
getSleepingOffset
-
getSleepingOffset
-
getAnimationSets
-
getAnimationSets
-
getAttachments
-
getAttachments
-
getHitbox
-
getHitbox
-
getParticles
-
getParticles
-
getTrails
-
getTrails
-
getLight
-
getLight
-
getDetailBoxes
-
getDetailBoxes
-
getPhobia
-
getPhobia
-
getPhobiaModel
-
getPhobiaModel
-
hasHitbox
-
hasLight
-
hasAssetId
-
hasPath
-
hasTexture
-
hasGradientSet
-
hasGradientId
-
hasCamera
-
hasAnimationSets
-
hasAttachments
-
hasParticles
-
hasTrails
-
hasDetailBoxes
-
hasPhobiaModel
-
toObject
-
toObject
-
toObject
Decodes one Model and reports the end of its encoding through the cursor. A value of this type may hold further values of it, and decoding such a chain recurses once per link. The cursor counts the links so the chain cannot outrun the stack. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-