Contents
Class EntityScaleComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.EntityScaleComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Scales an entity by a given factor if applied.
-
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanstatic ComponentType<EntityStore, EntityScaleComponent> floatgetScale()voidsetScale(float scale) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
-
-
Constructor Details
-
EntityScaleComponent
public EntityScaleComponent(float scale)
-
-
Method Details
-
getComponentType
-
getScale
public float getScale() -
setScale
public void setScale(float scale) -
consumeNetworkOutdated
public boolean consumeNetworkOutdated() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-