Class NPCFlockCommand
java.lang.Object
com.hypixel.hytale.server.core.command.system.AbstractCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractCommandCollection
com.hypixel.hytale.server.flock.commands.NPCFlockCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate static final doubleprivate static final intFields inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
EMPTY_STRING_ARRAY, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleananyEntityInViewCone(Ref<EntityStore> playerReference, Store<EntityStore> store, Predicate<Ref<EntityStore>> predicate) static intforNpcEntitiesInViewCone(Ref<EntityStore> playerReference, Store<EntityStore> store, BiPredicate<Ref<EntityStore>, NPCEntity> predicate) Methods inherited from class com.hypixel.hytale.server.core.command.system.basecommands.AbstractCommandCollection
executeAsync, getFullUsage, getUsageStringMethods inherited from class com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
execute, runAsyncMethods inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
acceptCall, addAliases, addSubCommand, addUsageVariant, canGeneratePermission, completeRegistration, countParents, generatePermissionNode, getAliases, getDescription, getFullyQualifiedName, getName, getOwner, getPermission, getPermissionGroups, getPermissionGroupsRecursive, getRequiredArguments, getSubCommands, getUsageShort, hasBeenRegistered, hasPermission, isVariant, matches, putRecursivePermissionGroups, requirePermission, setAllowsExtraArguments, setOwner, setPermissionGroup, setPermissionGroups, setUnavailableInSingleplayer, withDefaultArg, withDefaultArg, withFlagArg, withListDefaultArg, withListOptionalArg, withListRequiredArg, withOptionalArg, withOptionalArg, withRequiredArg, withRequiredArg
-
Field Details
-
ENTITY_IN_VIEW_DISTANCE
private static final double ENTITY_IN_VIEW_DISTANCE- See Also:
-
ENTITY_IN_VIEW_ANGLE
private static final float ENTITY_IN_VIEW_ANGLE- See Also:
-
ENTITY_IN_VIEW_HEIGHT
private static final int ENTITY_IN_VIEW_HEIGHT- See Also:
-
-
Constructor Details
-
NPCFlockCommand
public NPCFlockCommand()
-
-
Method Details
-
forNpcEntitiesInViewCone
public static int forNpcEntitiesInViewCone(@Nonnull Ref<EntityStore> playerReference, @Nonnull Store<EntityStore> store, @Nonnull BiPredicate<Ref<EntityStore>, NPCEntity> predicate) -
anyEntityInViewCone
public static boolean anyEntityInViewCone(@Nonnull Ref<EntityStore> playerReference, @Nonnull Store<EntityStore> store, @Nonnull Predicate<Ref<EntityStore>> predicate)
-