Uses of Class
net.minecraft.world.entity.ai.behavior.OneShot
Packages that use OneShot
Package
Description
-
Uses of OneShot in net.minecraft.world.entity.ai.behavior
Methods in net.minecraft.world.entity.ai.behavior that return OneShotModifier and TypeMethodDescriptionstatic OneShot<AgeableMob> BabyFollowAdult.create(UniformInt followRange, float speedModifier) static OneShot<AgeableMob> BabyFollowAdult.create(UniformInt followRange, Function<LivingEntity, Float> speedModifier) BackUpIfTooClose.create(int tooCloseDistance, float strafeSpeed) GoToTargetLocation.create(MemoryModuleType<BlockPos> locationMemory, int closeEnoughDist, float speedModifier) static OneShot<LivingEntity> LocateHidingPlace.create(int radius, float speedModifier, int closeEnoughDist) MeleeAttack.create(int cooldownBetweenAttacks) static OneShot<LivingEntity> MoveToSkySeeingSpot.create(float speedModifier) static OneShot<LivingEntity> SetEntityLookTarget.create(float maxDist) static OneShot<LivingEntity> SetEntityLookTarget.create(Predicate<LivingEntity> canLootAtTarget, float maxDist) static OneShot<LivingEntity> SetEntityLookTarget.create(EntityType<?> entityType, float maxDist) private static <T> OneShot<PathfinderMob> SetWalkTargetAwayFrom.create(MemoryModuleType<T> walkTargetAwayFromMemory, float speedModifier, int desiredDistance, boolean hasTarget, Function<T, Vec3> toPosition) SetWalkTargetFromBlockMemory.create(MemoryModuleType<GlobalPos> blockTargetMemory, float speedModifier, int closeEnoughDist, int tooFarDistance, int tooLongUnreachableDuration) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(float speedModifier, int closeEnoughDist) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> canSetWalkTarget, Function<LivingEntity, Float> speedModifier, int closeEnoughDist) static OneShot<LivingEntity> SocializeAtBell.create()static OneShot<PathfinderMob> StrollAroundPoi.create(MemoryModuleType<GlobalPos> poiPosMemory, float speedModifier, int maxDistFromPoi) static OneShot<PathfinderMob> VillageBoundRandomStroll.create(float speedModifier) static OneShot<PathfinderMob> VillageBoundRandomStroll.create(float speedModifier, int maxHorizontalDist, int maxVerticalDist) static OneShot<PathfinderMob> SetWalkTargetAwayFrom.entity(MemoryModuleType<? extends Entity> walkTargetAwayFromMemory, float speedModifier, int desiredDistance, boolean hasTarget) static OneShot<PathfinderMob> RandomStroll.stroll(float speedModifier) static OneShot<PathfinderMob> RandomStroll.stroll(float speedModifier, boolean mayStrollFromWater) private static OneShot<PathfinderMob> RandomStroll.strollFlyOrSwim(float speedModifier, Function<PathfinderMob, Vec3> target, Predicate<PathfinderMob> canStroll) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerGate(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> triggers, GateBehavior.OrderPolicy orderPolicy, GateBehavior.RunningPolicy runningPolicy) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerOneShuffled(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> triggers) -
Uses of OneShot in net.minecraft.world.entity.ai.behavior.declarative
Methods in net.minecraft.world.entity.ai.behavior.declarative that return OneShotModifier and TypeMethodDescriptionstatic <E extends LivingEntity>
OneShot<E> BehaviorBuilder.create(Function<BehaviorBuilder.Instance<E>, ? extends com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, Trigger<E>>> initializer) static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity>
OneShot<E> BehaviorBuilder.triggerIf(BiPredicate<ServerLevel, E> predicate) static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity>
OneShot<E> Methods in net.minecraft.world.entity.ai.behavior.declarative with parameters of type OneShot -
Uses of OneShot in net.minecraft.world.entity.animal.armadillo
Fields in net.minecraft.world.entity.animal.armadillo declared as OneShot -
Uses of OneShot in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin that return OneShotMethods in net.minecraft.world.entity.monster.piglin that return types with arguments of type OneShotModifier and TypeMethodDescriptionprivate static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<OneShot<LivingEntity>, Integer>> PiglinAi.createLookBehaviors()