Contents
Class RotateObjectComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.RotateObjectComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A component that represents an object that rotates at a given speed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<RotateObjectComponent> The codec used to parseRotateObjectComponentinstances.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionEmpty Constructor for aRotateObjectComponentinstance.RotateObjectComponent(float rotationSpeed) Default Constructor for aRotateObjectComponentinstance. -
Method Summary
Modifier and TypeMethodDescriptionclone()floatvoidsetRotationSpeed(float rotationSpeed) Called to set the rotation speed of this component.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
The codec used to parseRotateObjectComponentinstances.
-
-
Constructor Details
-
RotateObjectComponent
public RotateObjectComponent()Empty Constructor for aRotateObjectComponentinstance.Used by the codec to instantiate
RotateObjectComponentinstances. -
RotateObjectComponent
public RotateObjectComponent(float rotationSpeed) Default Constructor for aRotateObjectComponentinstance.- Parameters:
rotationSpeed- The rotation speed to set.
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
RotateObjectComponentcomponent.
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-
setRotationSpeed
public void setRotationSpeed(float rotationSpeed) Called to set the rotation speed of this component.- Parameters:
rotationSpeed- The rotation speed to set.
-
getRotationSpeed
public float getRotationSpeed()- Returns:
- the rotation speed of this component.
-