Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getParticles(MemorySegment)
- getParticles(MemorySegment, int)
- getFirstPersonParticles(MemorySegment)
- getFirstPersonParticles(MemorySegment, int)
- getModel(MemorySegment)
- getModel(MemorySegment, int)
- getTexture(MemorySegment)
- getTexture(MemorySegment, int)
- getModelVFXId(MemorySegment)
- getModelVFXId(MemorySegment, int)
- getCondition(MemorySegment)
- getCondition(MemorySegment, int)
- getConditionValueType(MemorySegment)
- getConditionValueType(MemorySegment, int)
- getLocalSoundEventId(MemorySegment)
- getLocalSoundEventId(MemorySegment, int)
- getWorldSoundEventId(MemorySegment)
- getWorldSoundEventId(MemorySegment, int)
- hasCondition(MemorySegment, int)
- hasParticles(MemorySegment, int)
- hasFirstPersonParticles(MemorySegment, int)
- hasModel(MemorySegment, int)
- hasTexture(MemorySegment, int)
- hasModelVFXId(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ItemAppearanceCondition
java.lang.Object
com.hypixel.hytale.protocol.ItemAppearanceCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intintstatic final intstatic final intstatic final intstatic final intint -
Constructor Summary
ConstructorsConstructorDescriptionItemAppearanceCondition(ModelParticle[] particles, ModelParticle[] firstPersonParticles, String model, String texture, String modelVFXId, FloatRange condition, ValueType conditionValueType, int localSoundEventId, int worldSoundEventId) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic FloatRangestatic FloatRangegetCondition(MemorySegment mem, int offset) static ValueTypestatic ValueTypegetConditionValueType(MemorySegment mem, int offset) static ModelParticle[]static ModelParticle[]getFirstPersonParticles(MemorySegment mem, int offset) static intstatic intgetLocalSoundEventId(MemorySegment mem, int offset) static StringgetModel(MemorySegment mem) static StringgetModel(MemorySegment mem, int offset) static Stringstatic StringgetModelVFXId(MemorySegment mem, int offset) static ModelParticle[]static ModelParticle[]getParticles(MemorySegment mem, int offset) static StringgetTexture(MemorySegment mem) static StringgetTexture(MemorySegment mem, int offset) static intstatic intgetWorldSoundEventId(MemorySegment mem, int offset) static booleanhasCondition(MemorySegment mem, int offset) static booleanhasFirstPersonParticles(MemorySegment mem, int offset) inthashCode()static booleanhasModel(MemorySegment mem, int offset) static booleanhasModelVFXId(MemorySegment mem, int offset) static booleanhasParticles(MemorySegment mem, int offset) static booleanhasTexture(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ItemAppearanceConditiontoObject(MemorySegment mem) static ItemAppearanceConditiontoObject(MemorySegment mem, int offset) static ItemAppearanceConditiontoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ItemAppearanceCondition 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:
-
particles
-
firstPersonParticles
-
model
-
texture
-
modelVFXId
-
condition
-
conditionValueType
-
localSoundEventId
public int localSoundEventId -
worldSoundEventId
public int worldSoundEventId
-
-
Constructor Details
-
ItemAppearanceCondition
public ItemAppearanceCondition() -
ItemAppearanceCondition
public ItemAppearanceCondition(@Nullable ModelParticle[] particles, @Nullable ModelParticle[] firstPersonParticles, @Nullable String model, @Nullable String texture, @Nullable String modelVFXId, @Nullable FloatRange condition, @Nonnull ValueType conditionValueType, int localSoundEventId, int worldSoundEventId) -
ItemAppearanceCondition
-
-
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. -
getParticles
-
getParticles
-
getFirstPersonParticles
-
getFirstPersonParticles
-
getModel
-
getModel
-
getTexture
-
getTexture
-
getModelVFXId
-
getModelVFXId
-
getCondition
-
getCondition
-
getConditionValueType
-
getConditionValueType
-
getLocalSoundEventId
-
getLocalSoundEventId
-
getWorldSoundEventId
-
getWorldSoundEventId
-
hasCondition
-
hasParticles
-
hasFirstPersonParticles
-
hasModel
-
hasTexture
-
hasModelVFXId
-
toObject
-
toObject
-
toObject
public static ItemAppearanceCondition toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one ItemAppearanceCondition and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-