Class ActionProperties
java.lang.Object
nokunami.floral_warfare.api.common.ai.action.ActionProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionPropertiesactionProperties(int interval, int preAnim, int postAnim) booleanbooleancheckTickPost(ActionInstance cooldown) intPredicate<net.minecraft.world.entity.LivingEntity>intintintintBiPredicate<net.minecraft.world.entity.LivingEntity,@Nullable ActionInstance> postAction(int duration) repeat(int i) repeat(int i, boolean anim) setActionInterval(int actionInterval, int preAnim, int postAnim) setGoalPredicate(Predicate<net.minecraft.world.entity.LivingEntity> predicate) setTicking(boolean ticking) setUpdatesEveryTick(BiPredicate<net.minecraft.world.entity.LivingEntity, ActionInstance> predicate) booleanbooleanbooleantestPredicate(net.minecraft.world.entity.LivingEntity entity) booleanupdatesEveryTick(net.minecraft.world.entity.LivingEntity entity, @Nullable ActionInstance instance)
-
Constructor Details
-
ActionProperties
public ActionProperties(int actionInterval, int preAnim, int postAnim)
-
-
Method Details
-
actionProperties
-
setActionInterval
-
postAction
- Parameters:
duration- set the duration for Post Action, (Capped bypostAnimation)
-
repeat
-
repeat
-
setTicking
-
getPreAnimation
public int getPreAnimation() -
getPostAnimation
public int getPostAnimation() -
getPostTick
public int getPostTick() -
getRepeats
public int getRepeats() -
shouldRepeatAnimation
public boolean shouldRepeatAnimation() -
alwaysTick
public boolean alwaysTick() -
getActionDuration
public int getActionDuration() -
shouldTickPost
public boolean shouldTickPost() -
setGoalPredicate
public ActionProperties setGoalPredicate(Predicate<net.minecraft.world.entity.LivingEntity> predicate) -
getGoalPredicate
-
testPredicate
public boolean testPredicate(net.minecraft.world.entity.LivingEntity entity) -
setUpdatesEveryTick
public ActionProperties setUpdatesEveryTick(BiPredicate<net.minecraft.world.entity.LivingEntity, ActionInstance> predicate) -
getUpdatesEveryTick
public BiPredicate<net.minecraft.world.entity.LivingEntity,@Nullable ActionInstance> getUpdatesEveryTick() -
updatesEveryTick
public boolean updatesEveryTick(net.minecraft.world.entity.LivingEntity entity, @Nullable @Nullable ActionInstance instance) -
checkTickPost
-