HyCodeYourTale
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)

privateMap<String, ModelAsset.AnimationSet> animationSetMap
privateModelAttachment[] attachments
privateBox boundingBox
privatetransient SoftReference<com.hypixel.hytale.protocol.Model> cachedPacket
privateCameraSettings camera
privateBox crouchBoundingBox
privatefloat crouchOffset
privateMap<String, DetailBox[]> detailBoxes
privatefloat eyeHeight
privateString gradientId
privateString gradientSet
privateColorLight light
privateString model
privateString modelAssetId
privateModelParticle[] particles
privatePhobia phobia
privateString phobiaModelAssetId
privatePhysicsValues physicsValues
privateMap<String, String> randomAttachmentIds
privatefloat scale
privateString texture
privateModelTrail[] trails

Related Classes