Package emu.grasscutter.game.entity
Class EntityRegion
java.lang.Object
emu.grasscutter.game.entity.GameEntity
emu.grasscutter.game.entity.EntityRegion
-
Field Summary
Fields inherited from class emu.grasscutter.game.entity.GameEntity
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(GameEntity entity) booleanit.unimi.dsi.fastutil.ints.Int2FloatMapintThe Region Entity would not be sent to client.booleanbooleanbooleanvoidremoveEntity(int entityId) voidremoveEntity(GameEntity entity) voidvoidtoProto()Methods 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, onDeath, onInteract, onRemoved, setBlockId, setConfigId, setFightProperty, setFightProperty, setGroupId, setLastMoveReliableSeq, setLastMoveSceneTimeMs, setLockHP, setMotionState, setSpawnEntry
-
Constructor Details
-
EntityRegion
-
-
Method Details
-
addEntity
-
hasNewEntities
public boolean hasNewEntities() -
resetNewEntities
public void resetNewEntities() -
removeEntity
public void removeEntity(int entityId) -
removeEntity
-
entityLeave
public boolean entityLeave() -
resetEntityLeave
public void resetEntityLeave() -
getFightProperties
public it.unimi.dsi.fastutil.ints.Int2FloatMap getFightProperties()- Specified by:
getFightPropertiesin classGameEntity
-
getPosition
- Specified by:
getPositionin classGameEntity
-
getRotation
- Specified by:
getRotationin classGameEntity
-
toProto
- Specified by:
toProtoin classGameEntity
-
getFirstEntityId
public int getFirstEntityId()The Region Entity would not be sent to client. -
isHasNewEntities
public boolean isHasNewEntities() -
isEntityLeave
public boolean isEntityLeave() -
getEntities
-
getMetaRegion
-