Package emu.grasscutter.game.entity
Class EntityVehicle
java.lang.Object
emu.grasscutter.game.entity.GameEntity
emu.grasscutter.game.entity.EntityBaseGadget
emu.grasscutter.game.entity.EntityVehicle
-
Field Summary
Fields inherited from class emu.grasscutter.game.entity.GameEntity
id -
Constructor Summary
ConstructorsConstructorDescriptionEntityVehicle(Scene scene, Player player, int gadgetId, int pointId, Position pos, Position rot) -
Method Summary
Modifier and TypeMethodDescriptionfloatit.unimi.dsi.fastutil.ints.Int2FloatOpenHashMapintgetOwner()intList<emu.grasscutter.net.proto.VehicleMemberOuterClass.VehicleMember>voidsetCurStamina(float stamina) emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfotoProto()Methods inherited from class emu.grasscutter.game.entity.EntityBaseGadget
onDeathMethods inherited from class emu.grasscutter.game.entity.GameEntity
addFightProperty, damage, damage, getBlockId, getConfigId, getEntityType, getFightProperty, getGroupId, getId, getLastMoveReliableSeq, getLastMoveSceneTimeMs, getLifeState, getMetaModifiers, getMetaOverrideMap, getMotionInfo, getMotionState, getScene, getSpawnEntry, getWorld, heal, isAlive, setBlockId, setConfigId, setFightProperty, setGroupId, setLastMoveReliableSeq, setLastMoveSceneTimeMs, setMotionState, setSpawnEntry
-
Constructor Details
-
EntityVehicle
-
-
Method Details
-
getGadgetId
public int getGadgetId()- Specified by:
getGadgetIdin classEntityBaseGadget
-
getOwner
-
getCurStamina
public float getCurStamina() -
setCurStamina
public void setCurStamina(float stamina) -
getPointId
public int getPointId() -
getVehicleMembers
-
getFightProperties
public it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap getFightProperties()- Specified by:
getFightPropertiesin classGameEntity
-
getPosition
- Specified by:
getPositionin classGameEntity
-
getRotation
- Specified by:
getRotationin classGameEntity
-
toProto
public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo toProto()- Specified by:
toProtoin classGameEntity
-