classpublicPriority 3
Model
com.hypixel.hytale.server.core.asset.type.model.config.Model
implements NetworkSerializable
31
Methods
31
Public Methods
22
Fields
13
Constructors
Constants
BuilderCodec<Model.ModelReference>CODEC= BuilderCodec.builder(Model.ModelReference.class, Model.ModelReference::new)
.addField(ne...
Model.ModelReferenceDEFAULT_PLAYER_MODEL= new Model.ModelReference("Player", -1.0F, null, false)
StringUNKNOWN_TEXTURE= "textures/Unknown.png"
Constructors
package-private
Model()package-private
Model(ModelAsset modelAsset, float scale, Map<String, String> randomAttachmentIds, Box overrideBoundingBox, boolean staticModel)package-private
Model()package-private
Model()package-private
Model(ModelAsset modelAsset)package-private
Model(ModelAsset modelAsset, float scale)package-private
Model(ModelAsset modelAsset)package-private
Model(ModelAsset modelAsset, Box boundingBox)package-private
Model(ModelAsset modelAsset, float scale)package-private
Model(ModelAsset modelAsset, float scale, Map<String, String> randomAttachmentIds)package-private
Model(ModelAsset modelAsset, float scale, Map<String, String> randomAttachmentIds, Box overrideBoundingBox)public
Model(Model other)public
Model(String modelAssetId, float scale, Map<String, String> randomAttachmentIds, ModelAttachment[] attachments, Box boundingBox, String model, String texture, String gradientSet, String gradientId, float eyeHeight, float crouchOffset, Map<String, ModelAsset.AnimationSet> animationSetMap, CameraSettings camera, ColorLight light, ModelParticle[] particles, ModelTrail[] trails, PhysicsValues physicsValues, Map<String, DetailBox[]> detailBoxes, Phobia phobia, String phobiaModelAssetId)Methods
Public Methods (31)
public
boolean equals(Object o)@Override
public
Map<String, ModelAsset.AnimationSet> getAnimationSetMap()public
ModelAttachment[] getAttachments()public
Box getBoundingBox(MovementStates movementStates)@Nullable
public
Box getBoundingBox()@Nullable
public
CameraSettings getCamera()public
Box getCrouchBoundingBox()@Nullable
public
float getCrouchOffset()public
Map<String, DetailBox[]> getDetailBoxes()public
float getEyeHeight(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)public
float getEyeHeight()public
String getFirstBoundAnimationId(String[] preferenceOrder)@Nullable
public
String getFirstBoundAnimationId(String id, String fallbackId)@Nullable
public
String getGradientId()public
String getGradientSet()public
ColorLight getLight()public
String getModel()public
String getModelAssetId()public
ModelParticle[] getParticles()public
Phobia getPhobia()public
String getPhobiaModelAssetId()public
PhysicsValues getPhysicsValues()public
Map<String, String> getRandomAttachmentIds()public
float getScale()public
String getTexture()public
ModelTrail[] getTrails()public
int hashCode()@Override
public
boolean isStaticModel()public
com.hypixel.hytale.protocol.Model toPacket()@Nonnull
public
Model.ModelReference toReference()@Nonnull
public
String toString()@Override
Fields
Private/Package Fields (22)
private
Map<String, ModelAsset.AnimationSet> animationSetMapprivate
ModelAttachment[] attachmentsprivate
Box boundingBoxprivate
transient SoftReference<com.hypixel.hytale.protocol.Model> cachedPacketprivate
CameraSettings cameraprivate
Box crouchBoundingBoxprivate
float crouchOffsetprivate
Map<String, DetailBox[]> detailBoxesprivate
float eyeHeightprivate
String gradientIdprivate
String gradientSetprivate
ColorLight lightprivate
String modelprivate
String modelAssetIdprivate
ModelParticle[] particlesprivate
Phobia phobiaprivate
String phobiaModelAssetIdprivate
PhysicsValues physicsValuesprivate
Map<String, String> randomAttachmentIdsprivate
float scaleprivate
String textureprivate
ModelTrail[] trails