Class EntityPlatform
java.lang.Object
emu.grasscutter.game.entity.GameEntity
emu.grasscutter.game.entity.EntityBaseGadget
emu.grasscutter.game.entity.platform.EntityPlatform
- Direct Known Subclasses:
EntitySolarIsotomaElevatorPlatform
-
Field Summary
Fields inherited from class emu.grasscutter.game.entity.EntityBaseGadget
position, rotationFields inherited from class emu.grasscutter.game.entity.GameEntity
id -
Constructor Summary
ConstructorsConstructorDescriptionEntityPlatform(EntityClientGadget gadget, Scene scene, Player player, int gadgetId, Position pos, Position rot, MovingPlatformTypeOuterClass.MovingPlatformType movingPlatformType) -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.ints.Int2FloatMapintgetOwner()booleanisActive()booleanvoidsetActive(boolean isActive) voidsetStarted(boolean isStarted) toProto()Methods inherited from class emu.grasscutter.game.entity.EntityBaseGadget
fillFightProps, getPosition, getRotation, onDeathMethods inherited from class emu.grasscutter.game.entity.GameEntity
addAllFightPropsToEntityInfo, addFightProperty, damage, damage, getBlockId, getConfigId, getEntityType, getFightProperty, getGroupId, getId, getLastMoveReliableSeq, getLastMoveSceneTimeMs, getLifeState, getMetaModifiers, getMetaOverrideMap, getMotionInfo, getMotionState, getScene, getSpawnEntry, getWorld, hasFightProperty, heal, isAlive, isLockHP, move, onCreate, onInteract, onRemoved, setBlockId, setConfigId, setFightProperty, setFightProperty, setGroupId, setLastMoveReliableSeq, setLastMoveSceneTimeMs, setLockHP, setMotionState, setSpawnEntry
-
Constructor Details
-
EntityPlatform
public EntityPlatform(EntityClientGadget gadget, Scene scene, Player player, int gadgetId, Position pos, Position rot, MovingPlatformTypeOuterClass.MovingPlatformType movingPlatformType)
-
-
Method Details
-
toProto
- Specified by:
toProtoin classGameEntity
-
onStartRoute
-
onStopRoute
-
getOwner
-
getGadgetId
public int getGadgetId()- Specified by:
getGadgetIdin classEntityBaseGadget
-
getGadget
-
getFightProperties
public it.unimi.dsi.fastutil.ints.Int2FloatMap getFightProperties()- Specified by:
getFightPropertiesin classGameEntity
-
getConfigGadget
-
getMovingPlatformType
-
isStarted
public boolean isStarted() -
setStarted
public void setStarted(boolean isStarted) -
isActive
public boolean isActive() -
setActive
public void setActive(boolean isActive)
-