net.minecraft.world.entity.monster.warden

public class WardenSpawnTracker

cpc
net.minecraft.world.entity.monster.warden.WardenSpawnTracker
net.minecraft.class_7262
net.minecraft.block.entity.SculkShriekerWarningManager
net.minecraft.world.entity.monster.warden.WardenSpawnTracker

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<WardenSpawnTracker>
a
CODEC
field_38183
CODEC
public static final int
b
MAX_WARNING_LEVEL
field_38184
MAX_WARNING_LEVEL
private static final double
c
PLAYER_SEARCH_RADIUS
field_38738
WARN_RANGE
private static final int
d
WARNING_CHECK_DIAMETER
field_38186
WARN_WARDEN_RANGE
private static final int
e
DECREASE_WARNING_LEVEL_EVERY_INTERVAL
field_38187
WARN_DECREASE_COOLDOWN
private static final int
f
WARNING_LEVEL_INCREASE_COOLDOWN
field_38188
WARN_INCREASE_COOLDOWN
private int
g
ticksSinceLastWarning
field_38194
ticksSinceLastWarning
private int
h
warningLevel
field_38195
warningLevel
private int
i
cooldownTicks
field_38196
cooldownTicks

Constructor summary

ModifierConstructor
public (int ticksSinceLastWarning, int warningLevel, int cooldownTicks)

Method summary

Modifier and TypeMethod
public void
a()
tick()
method_42247()
tick()
public void
b()
reset()
method_42258()
reset()
public static OptionalInt
a(ash arg0, jh arg1, asi arg2)
tryWarn(ServerLevel arg0, BlockPos arg1, ServerPlayer arg2)
method_42250(class_3218 arg0, class_2338 arg1, class_3222 arg2)
warnNearbyPlayers(ServerWorld world, BlockPos pos, ServerPlayerEntity player)
private boolean
d()
onCooldown()
method_44003()
isInCooldown()
private static boolean
a(ash arg0, jh arg1)
hasNearbyWarden(ServerLevel arg0, BlockPos arg1)
method_42259(class_3218 arg0, class_2338 arg1)
isWardenNearby(ServerWorld world, BlockPos pos)
private static List<ServerPlayer>
b(ash arg0, jh arg1)
getNearbyPlayers(ServerLevel arg0, BlockPos arg1)
method_42265(class_3218 arg0, class_2338 arg1)
getPlayersInRange(ServerWorld world, BlockPos pos)
private void
e()
increaseWarningLevel()
method_42261()
increaseWarningLevel()
private void
f()
decreaseWarningLevel()
method_42264()
decreaseWarningLevel()
public void
a(int arg0)
setWarningLevel(int arg0)
method_42248(int arg0)
setWarningLevel(int warningLevel)
public int
c()
getWarningLevel()
method_42267()
getWarningLevel()
private void
a(cpc arg0)
copyData(WardenSpawnTracker arg0)
method_42252(class_7262 arg0)
copy(SculkShriekerWarningManager other)