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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull net.minecraft.world.entity.ai.memory.MemoryModuleType<net.minecraft.world.entity.LivingEntity> protected booleanisMatchingEntity(net.minecraft.server.level.ServerLevel level, @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, wasEntityAttackableLastNTicks
-
Constructor Details
-
CrabAttackablesSensor
public CrabAttackablesSensor()
-
-
Method Details
-
isMatchingEntity
protected boolean isMatchingEntity(net.minecraft.server.level.ServerLevel level, @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
-