Class SpawnWrapper<T extends NPCSpawn>
java.lang.Object
com.hypixel.hytale.server.spawning.wrappers.SpawnWrapper<T>
- Direct Known Subclasses:
BeaconSpawnWrapper,WorldSpawnWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LightRangePredicateprotected it.unimi.dsi.fastutil.ints.Int2ObjectMap<RoleSpawnParameters> protected final Tprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddRoles()it.unimi.dsi.fastutil.ints.Int2ObjectMap<RoleSpawnParameters> getRoles()getSpawn()it.unimi.dsi.fastutil.ints.IntSetgetSpawnBlockSet(int roleIndex) intgetSpawnFluidTag(int roleIndex) intbooleanhasInvalidNPC(String name) booleanshouldDespawn(World world, WorldTimeResource timeManager) booleanspawnParametersMatch(ComponentAccessor<EntityStore> componentAccessor) booleanwithinLightRange(SpawningContext spawningContext)
-
Field Details
-
spawnIndex
protected final int spawnIndex -
spawn
-
roles
-
lightRangePredicate
-
invalidNPCs
-
-
Constructor Details
-
SpawnWrapper
-
-
Method Details
-
getSpawn
-
getRoles
-
getSpawnBlockSet
@Nullable public it.unimi.dsi.fastutil.ints.IntSet getSpawnBlockSet(int roleIndex) -
getSpawnFluidTag
public int getSpawnFluidTag(int roleIndex) -
getSpawnIndex
public int getSpawnIndex() -
getLightRangePredicate
-
hasInvalidNPC
-
spawnParametersMatch
-
shouldDespawn
-
withinLightRange
-
addRoles
private void addRoles()
-