public class InteractWithEntityTask<E extends LivingEntity,T extends LivingEntity> extends Task<E>
Task.Status
Modifier and Type | Field and Description |
---|---|
private int |
field_220446_a |
private float |
field_220447_b |
private EntityType<? extends T> |
field_220448_c |
private int |
field_220449_d |
private java.util.function.Predicate<T> |
field_220450_e |
private java.util.function.Predicate<E> |
field_220451_f |
private MemoryModuleType<T> |
field_220452_g |
Constructor and Description |
---|
InteractWithEntityTask(EntityType<? extends T> p_i50363_1_,
int p_i50363_2_,
java.util.function.Predicate<E> p_i50363_3_,
java.util.function.Predicate<T> p_i50363_4_,
MemoryModuleType<T> p_i50363_5_,
float p_i50363_6_,
int p_i50363_7_) |
Modifier and Type | Method and Description |
---|---|
static <T extends LivingEntity> |
func_220445_a(EntityType<? extends T> p_220445_0_,
int p_220445_1_,
MemoryModuleType<T> p_220445_2_,
float p_220445_3_,
int p_220445_4_) |
protected boolean |
shouldExecute(ServerWorld worldIn,
E owner) |
protected void |
startExecuting(ServerWorld worldIn,
E entityIn,
long gameTimeIn) |
getStatus, isTimedOut, resetTask, shouldContinueExecuting, start, stop, tick, toString, updateTask
private final int field_220446_a
private final float field_220447_b
private final EntityType<? extends T extends LivingEntity> field_220448_c
private final int field_220449_d
private final java.util.function.Predicate<T extends LivingEntity> field_220450_e
private final java.util.function.Predicate<E extends LivingEntity> field_220451_f
private final MemoryModuleType<T extends LivingEntity> field_220452_g
public InteractWithEntityTask(EntityType<? extends T> p_i50363_1_, int p_i50363_2_, java.util.function.Predicate<E> p_i50363_3_, java.util.function.Predicate<T> p_i50363_4_, MemoryModuleType<T> p_i50363_5_, float p_i50363_6_, int p_i50363_7_)
public static <T extends LivingEntity> InteractWithEntityTask<LivingEntity,T> func_220445_a(EntityType<? extends T> p_220445_0_, int p_220445_1_, MemoryModuleType<T> p_220445_2_, float p_220445_3_, int p_220445_4_)
protected boolean shouldExecute(ServerWorld worldIn, E owner)
shouldExecute
in class Task<E extends LivingEntity>
protected void startExecuting(ServerWorld worldIn, E entityIn, long gameTimeIn)
startExecuting
in class Task<E extends LivingEntity>