Package emu.grasscutter.game.entity
Class EntityMonster
java.lang.Object
emu.grasscutter.game.entity.GameEntity
emu.grasscutter.game.entity.EntityMonster
-
Field Summary
Fields inherited from class emu.grasscutter.game.entity.GameEntity
id -
Constructor Summary
ConstructorsConstructorDescriptionEntityMonster(Scene scene, MonsterData monsterData, Position pos, int level) -
Method Summary
Methods inherited from class emu.grasscutter.game.entity.GameEntity
addFightProperty, getBlockId, getConfigId, getEntityType, getFightProperty, getGroupId, getLastMoveReliableSeq, getLastMoveSceneTimeMs, getLifeState, getMotionInfo, getMotionState, getScene, getSpawnEntry, getWorld, setBlockId, setConfigId, setFightProperty, setGroupId, setLastMoveReliableSeq, setLastMoveSceneTimeMs, setMotionState, setSpawnEntry
-
Constructor Details
-
EntityMonster
-
-
Method Details
-
getId
public int getId()- Overrides:
getIdin classGameEntity
-
getMonsterData
-
getMonsterWeaponId
public int getMonsterWeaponId() -
getLevel
public int getLevel() -
getPosition
- Specified by:
getPositionin classGameEntity
-
getRotation
- Specified by:
getRotationin classGameEntity
-
getBornPos
-
getFightProperties
public it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap getFightProperties()- Specified by:
getFightPropertiesin classGameEntity
-
isAlive
public boolean isAlive()- Overrides:
isAlivein classGameEntity
-
getPoseId
public int getPoseId() -
setPoseId
public void setPoseId(int poseId) -
onDeath
public void onDeath(int killerId) - Specified by:
onDeathin classGameEntity
-
recalcStats
public void recalcStats() -
toProto
public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo toProto()- Specified by:
toProtoin classGameEntity
-