Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- get()
- setup()
- start()
- shutdown()
- getFlockComponentType()
- getFlockMembershipComponentType()
- getPersistentFlockDataComponentType()
- getPrefabRemappedFlockReference(int, UUID)
- trySpawnFlock(Ref, NPCEntity, Store, int, Vector3dc, Rotation3fc, FlockAsset, TriConsumer)
- trySpawnFlock(Ref, NPCEntity, Store, int, Vector3dc, Rotation3fc, int, TriConsumer)
- trySpawnFlock(Ref, NPCEntity, int, Vector3dc, Rotation3fc, int, FlockAsset, TriConsumer, TriConsumer, Store)
- getFlock(ComponentAccessor, Ref)
- createFlock(Store, Role)
- createFlock(Store, FlockAsset, String[])
- getFlockReference(Ref, ComponentAccessor)
- isFlockMember(Ref, Store)
Class FlockPlugin
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.flock.FlockPlugin
- All Implemented Interfaces:
CommandOwner
Created on 06/05/2020
-
Field Summary
Fields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Ref<EntityStore> createFlock(Store<EntityStore> store, FlockAsset flockDefinition, String[] allowedRoles) static Ref<EntityStore> createFlock(Store<EntityStore> store, Role role) static FlockPluginget()static FlockgetFlock(ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> reference) Deprecated.static Ref<EntityStore> getFlockReference(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) getPrefabRemappedFlockReference(int prefabId, UUID oldId) static booleanisFlockMember(Ref<EntityStore> ref, Store<EntityStore> store) voidsetup()voidshutdown()voidstart()static Ref<EntityStore> trySpawnFlock(Ref<EntityStore> npcRef, NPCEntity npc, int roleIndex, org.joml.Vector3dc position, Rotation3fc rotation, int flockSize, FlockAsset flockDefinition, TriConsumer<NPCEntity, Holder<EntityStore>, Store<EntityStore>> preAddToWorld, TriConsumer<NPCEntity, Ref<EntityStore>, Store<EntityStore>> postSpawn, Store<EntityStore> store) static Ref<EntityStore> trySpawnFlock(Ref<EntityStore> npcRef, NPCEntity npc, Store<EntityStore> store, int roleIndex, org.joml.Vector3dc position, Rotation3fc rotation, int flockSize, TriConsumer<NPCEntity, Ref<EntityStore>, Store<EntityStore>> postSpawn) static Ref<EntityStore> trySpawnFlock(Ref<EntityStore> npcRef, NPCEntity npc, Store<EntityStore> store, int roleIndex, org.joml.Vector3dc position, Rotation3fc rotation, FlockAsset flockDefinition, TriConsumer<NPCEntity, Ref<EntityStore>, Store<EntityStore>> postSpawn) Methods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Constructor Details
-
FlockPlugin
-
-
Method Details
-
get
-
setup
public void setup() -
start
public void start() -
shutdown
public void shutdown() -
getFlockComponentType
-
getFlockMembershipComponentType
-
getPersistentFlockDataComponentType
-
getPrefabRemappedFlockReference
-
trySpawnFlock
@Nullable public static Ref<EntityStore> trySpawnFlock(@Nonnull Ref<EntityStore> npcRef, @Nonnull NPCEntity npc, @Nonnull Store<EntityStore> store, int roleIndex, @Nonnull org.joml.Vector3dc position, Rotation3fc rotation, @Nullable FlockAsset flockDefinition, TriConsumer<NPCEntity, Ref<EntityStore>, Store<EntityStore>> postSpawn) -
trySpawnFlock
@Nullable public static Ref<EntityStore> trySpawnFlock(@Nonnull Ref<EntityStore> npcRef, @Nonnull NPCEntity npc, @Nonnull Store<EntityStore> store, int roleIndex, @Nonnull org.joml.Vector3dc position, Rotation3fc rotation, int flockSize, TriConsumer<NPCEntity, Ref<EntityStore>, Store<EntityStore>> postSpawn) -
trySpawnFlock
@Nullable public static Ref<EntityStore> trySpawnFlock(@Nonnull Ref<EntityStore> npcRef, @Nonnull NPCEntity npc, int roleIndex, @Nonnull org.joml.Vector3dc position, Rotation3fc rotation, int flockSize, FlockAsset flockDefinition, TriConsumer<NPCEntity, Holder<EntityStore>, Store<EntityStore>> preAddToWorld, @Nullable TriConsumer<NPCEntity, Ref<EntityStore>, Store<EntityStore>> postSpawn, @Nonnull Store<EntityStore> store) -
getFlock
@Nullable @Deprecated public static Flock getFlock(@Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull Ref<EntityStore> reference) Deprecated. -
createFlock
@Nonnull public static Ref<EntityStore> createFlock(@Nonnull Store<EntityStore> store, @Nonnull Role role) -
createFlock
@Nonnull public static Ref<EntityStore> createFlock(@Nonnull Store<EntityStore> store, @Nullable FlockAsset flockDefinition, @Nonnull String[] allowedRoles) -
getFlockReference
@Nullable public static Ref<EntityStore> getFlockReference(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
isFlockMember
public static boolean isFlockMember(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store)
-