Class CrabAttackablesSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<net.minecraft.world.entity.LivingEntity>
net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
net.frozenblock.wilderwild.entity.ai.crab.CrabAttackablesSensor
public class CrabAttackablesSensor
extends net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull net.minecraft.world.entity.ai.memory.MemoryModuleType<net.minecraft.world.entity.LivingEntity> protected booleanisMatchingEntity(@NotNull net.minecraft.world.entity.LivingEntity attacker, @NotNull net.minecraft.world.entity.LivingEntity target) Methods inherited from class net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
doTick, getVisibleEntities, requiresMethods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
Constructor Details
-
CrabAttackablesSensor
public CrabAttackablesSensor()
-
-
Method Details
-
isMatchingEntity
protected boolean isMatchingEntity(@NotNull @NotNull net.minecraft.world.entity.LivingEntity attacker, @NotNull @NotNull net.minecraft.world.entity.LivingEntity target) - Specified by:
isMatchingEntityin classnet.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
-
getMemory
@NotNull protected @NotNull net.minecraft.world.entity.ai.memory.MemoryModuleType<net.minecraft.world.entity.LivingEntity> getMemory()- Specified by:
getMemoryin classnet.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
-