net.minecraft.world.entity.raid

public class Raid

bxw
net.minecraft.world.entity.raid.Raid
net.minecraft.class_3765
net.minecraft.village.raid.Raid
net.minecraft.src.C_1185_
net.minecraft.world.entity.raid.Raid

Field summary

Modifier and TypeField
private static final int
h
SECTION_RADIUS_FOR_FINDING_NEW_VILLAGE_CENTER
field_30676
field_30676
f_150204_
private static final int
i
ATTEMPT_RAID_FARTHEST
field_30677
field_30677
f_150205_
private static final int
j
ATTEMPT_RAID_CLOSE
field_30678
field_30678
f_150206_
private static final int
k
ATTEMPT_RAID_INSIDE
field_30679
field_30679
f_150207_
private static final int
l
VILLAGE_SEARCH_RADIUS
field_30680
field_30680
f_150208_
private static final int
m
RAID_TIMEOUT_TICKS
field_30681
field_30681
f_150209_
private static final int
n
NUM_SPAWN_ATTEMPTS
field_30682
field_30682
f_150210_
private static final String
o
OMINOUS_BANNER_PATTERN_NAME
field_30683
OMINOUS_BANNER_TRANSLATION_KEY
f_150211_
private static final String
p
RAIDERS_REMAINING
field_30684
RAIDERS_REMAINING_TRANSLATION_KEY
f_150212_
public static final int
a
VILLAGE_RADIUS_BUFFER
field_30669
field_30669
f_150197_
private static final int
q
POST_RAID_TICK_LIMIT
field_30685
field_30685
f_150213_
private static final int
r
DEFAULT_PRE_RAID_TICKS
field_30686
DEFAULT_PRE_RAID_TICKS
f_150214_
public static final int
b
MAX_NO_ACTION_TIME
field_30670
MAX_DESPAWN_COUNTER
f_150198_
public static final int
c
MAX_CELEBRATION_TICKS
field_30671
field_30671
f_150199_
private static final int
s
OUTSIDE_RAID_BOUNDS_TIMEOUT
field_30687
field_30687
f_150215_
public static final int
d
TICKS_PER_DAY
field_30672
field_30672
f_150200_
public static final int
e
DEFAULT_MAX_BAD_OMEN_LEVEL
field_30673
field_30673
f_150201_
private static final int
t
LOW_MOB_THRESHOLD
field_30688
field_30688
f_150216_
private static final Component
u
RAID_NAME_COMPONENT
field_19016
EVENT_TEXT
f_37665_
private static final Component
v
VICTORY
field_19017
VICTORY_SUFFIX_TEXT
f_37666_
private static final Component
w
DEFEAT
field_19018
DEFEAT_SUFFIX_TEXT
f_37667_
private static final Component
x
RAID_BAR_VICTORY_COMPONENT
field_19019
VICTORY_TITLE
f_37668_
private static final Component
y
RAID_BAR_DEFEAT_COMPONENT
field_19020
DEFEAT_TITLE
f_37669_
private static final int
z
HERO_OF_THE_VILLAGE_DURATION
field_30689
MAX_ACTIVE_TICKS
f_150217_
public static final int
f
VALID_RAID_RADIUS_SQR
field_30674
field_30674
f_150202_
public static final int
g
RAID_REMOVAL_THRESHOLD_SQR
field_30675
SQUARED_MAX_RAIDER_DISTANCE
f_150203_
private final Map<Integer, Raider>
A
groupToLeaderMap
field_16615
waveToCaptain
f_37670_
private final Map<Integer, Set<Raider>>
B
groupRaiderMap
field_16618
waveToRaiders
f_37671_
private final Set<UUID>
C
heroesOfTheVillage
field_19021
heroesOfTheVillage
f_37672_
private long
D
ticksActive
field_16605
ticksActive
f_37673_
private BlockPos
E
center
field_16613
center
f_37674_
private final ServerLevel
F
level
field_16619
world
f_37675_
private boolean
G
started
field_16611
started
f_37676_
private final int
H
id
field_16625
id
f_37677_
private float
I
totalHealth
field_16620
totalHealth
f_37678_
private int
J
badOmenLevel
field_16623
badOmenLevel
f_37679_
private boolean
K
active
field_16606
active
f_37680_
private int
L
groupsSpawned
field_16621
wavesSpawned
f_37681_
private final ServerBossEvent
M
raidEvent
field_16607
bar
f_37682_
private int
N
postRaidTicks
field_16616
postRaidTicks
f_37683_
private int
O
raidCooldownTicks
field_16614
preRaidTicks
f_37684_
private final RandomSource
P
random
field_16608
random
f_37685_
private final int
Q
numGroups
field_19022
waveCount
f_37686_
private Raid$RaidStatus
R
status
field_19023
status
f_37687_
private int
S
celebrationTicks
field_19024
finishCooldown
f_37688_
private Optional<BlockPos>
T
waveSpawnPos
field_19172
preCalculatedRavagerSpawnLocation
f_37689_

Constructor summary

ModifierConstructor
public (int id, ServerLevel world, BlockPos pos)
public (ServerLevel world, CompoundTag nbt)

Method summary

Modifier and TypeMethod
public boolean
a()
isOver()
method_16832()
isFinished()
m_37706_()
public boolean
b()
isBetweenWaves()
method_20020()
isPreRaid()
m_37749_()
public boolean
c()
hasFirstWaveSpawned()
method_20021()
hasSpawned()
m_37757_()
public boolean
d()
isStopped()
method_20022()
hasStopped()
m_37762_()
public boolean
e()
isVictory()
method_20023()
hasWon()
m_37767_()
public boolean
f()
isLoss()
method_20024()
hasLost()
m_37768_()
public float
g()
getTotalHealth()
method_35212()
getTotalHealth()
m_150220_()
public Set<Raider>
h()
getAllRaiders()
method_35213()
getAllRaiders()
m_150221_()
public Level
i()
getLevel()
method_16831()
getWorld()
m_37769_()
public boolean
j()
isStarted()
method_16524()
hasStarted()
m_37770_()
public int
k()
getGroupsSpawned()
method_16490()
getGroupsSpawned()
m_37771_()
private Predicate<ServerPlayer>
x()
validPlayer()
method_16501()
isInRaidDistance()
m_37784_()
private void
y()
updatePlayers()
method_16499()
updateBarToPlayers()
m_37785_()
public int
l()
getMaxBadOmenLevel()
method_16514()
getMaxAcceptableBadOmenLevel()
m_37772_()
public int
m()
getBadOmenLevel()
method_16493()
getBadOmenLevel()
m_37773_()
public void
a(int arg0)
setBadOmenLevel(int arg0)
method_35211(int arg0)
setBadOmenLevel(int badOmenLevel)
m_150218_(int arg0)
public void
a(bwp arg0)
absorbBadOmen(Player arg0)
method_16518(class_1657 arg0)
start(PlayerEntity player)
m_37728_(C_1141_ arg0)
public void
n()
stop()
method_16506()
invalidate()
m_37774_()
public void
o()
tick()
method_16509()
tick()
m_37775_()
private void
z()
moveRaidCenterToNearbyVillageSection()
method_20511()
moveRaidCenter()
m_37786_()
private Optional<BlockPos>
d(int arg0)
getValidSpawnPos(int arg0)
method_20267(int arg0)
preCalculateRavagerSpawnLocation(int proximity)
m_37763_(int arg0)
private boolean
A()
hasMoreWaves()
method_16833()
shouldSpawnMoreGroups()
m_37698_()
private boolean
B()
isFinalWave()
method_20012()
hasSpawnedFinalWave()
m_37699_()
private boolean
C()
hasBonusWave()
method_20013()
hasExtraWave()
m_37700_()
private boolean
D()
hasSpawnedBonusWave()
method_20014()
hasSpawnedExtraWave()
m_37701_()
private boolean
E()
shouldSpawnBonusGroup()
method_20015()
isSpawningExtraWave()
m_37702_()
private void
F()
updateRaiders()
method_16834()
removeObsoleteRaiders()
m_37703_()
private void
a(gp arg0)
playSound(BlockPos arg0)
method_16521(class_2338 arg0)
playRaidHorn(BlockPos pos)
m_37743_(C_4675_ arg0)
private void
b(gp arg0)
spawnGroup(BlockPos arg0)
method_16522(class_2338 arg0)
spawnNextWave(BlockPos pos)
m_37755_(C_4675_ arg0)
public void
a(int arg0, bxx arg1, gp arg2, boolean arg3)
joinRaid(int arg0, Raider arg1, BlockPos arg2, boolean arg3)
method_16516(int arg0, class_3763 arg1, class_2338 arg2, boolean arg3)
addRaider(int wave, RaiderEntity raider, BlockPos pos, boolean existing)
m_37713_(int p_37715_, C_1189_ p_37716_, C_4675_ p_37717_, boolean arg3)
public void
p()
updateBossbar()
method_16523()
updateBar()
m_37776_()
public float
q()
getHealthOfLivingRaiders()
method_16513()
getCurrentRaiderHealth()
m_37777_()
private boolean
G()
shouldSpawnGroup()
method_16519()
canSpawnRaiders()
m_37704_()
public int
r()
getTotalRaidersAlive()
method_16517()
getRaiderCount()
m_37778_()
public void
a(bxx arg0, boolean arg1)
removeFromRaid(Raider arg0, boolean arg1)
method_16510(class_3763 arg0, boolean arg1)
removeFromWave(RaiderEntity entity, boolean countHealth)
m_37740_(C_1189_ p_37742_, boolean arg1)
private void
H()
setDirty()
method_16520()
markDirty()
m_37705_()
public static ItemStack
s()
getLeaderBannerInstance()
method_16515()
getOminousBanner()
m_37779_()
public Raider
b(int arg0)
getLeader(int arg0)
method_16496(int arg0)
getCaptain(int wave)
m_37750_(int arg0)
private BlockPos
a(int arg0, int arg1)
findRandomSpawnPos(int arg0, int arg1)
method_16525(int arg0, int arg1)
getRavagerSpawnLocation(int proximity, int tries)
m_37707_(int p_37709_, int arg1)
private boolean
b(int arg0, bxx arg1)
addWaveMob(int arg0, Raider arg1)
method_16505(int arg0, class_3763 arg1)
addToWave(int wave, RaiderEntity entity)
m_37752_(int p_37754_, C_1189_ arg1)
public boolean
a(int arg0, bxx arg1, boolean arg2)
addWaveMob(int arg0, Raider arg1, boolean arg2)
method_16487(int arg0, class_3763 arg1, boolean arg2)
addToWave(int wave, RaiderEntity entity, boolean countHealth)
m_37718_(int p_37720_, C_1189_ p_37721_, boolean arg2)
public void
a(int arg0, bxx arg1)
setLeader(int arg0, Raider arg1)
method_16491(int arg0, class_3763 arg1)
setWaveCaptain(int wave, RaiderEntity entity)
m_37710_(int p_37712_, C_1189_ arg1)
public void
c(int arg0)
removeLeader(int arg0)
method_16500(int arg0)
removeLeader(int wave)
m_37758_(int arg0)
public BlockPos
t()
getCenter()
method_16495()
getCenter()
m_37780_()
private void
c(gp arg0)
setCenter(BlockPos arg0)
method_20509(class_2338 arg0)
setCenter(BlockPos center)
m_37760_(C_4675_ arg0)
public int
u()
getId()
method_16494()
getRaidId()
m_37781_()
private int
a(bxw$b arg0, int arg1, boolean arg2)
getDefaultNumSpawns(Raid$RaiderType arg0, int arg1, boolean arg2)
method_20018(class_3765$class_3766 arg0, int arg1, boolean arg2)
getCount(Raid$Member member, int wave, boolean extra)
m_37730_(C_1185_$C_1188_ p_37732_, int p_37733_, boolean arg2)
private int
a(bxw$b arg0, aoh arg1, int arg2, bck arg3, boolean arg4)
getPotentialBonusSpawns(Raid$RaiderType arg0, RandomSource arg1, int arg2, DifficultyInstance arg3, boolean arg4)
method_20019(class_3765$class_3766 arg0, class_5819 arg1, int arg2, class_1266 arg3, boolean arg4)
getBonusCount(Raid$Member member, Random random, int wave, LocalDifficulty localDifficulty, boolean extra)
m_219828_(C_1185_$C_1188_ p_219830_, C_212974_ p_219831_, int p_219832_, C_469_ p_219833_, boolean arg4)
public boolean
v()
isActive()
method_16504()
isActive()
m_37782_()
public CompoundTag
a(qp arg0)
save(CompoundTag arg0)
method_16502(class_2487 arg0)
writeNbt(NbtCompound nbt)
m_37747_(C_4917_ arg0)
public int
a(bcj arg0)
getNumGroups(Difficulty arg0)
method_20016(class_1267 arg0)
getMaxWaves(Difficulty difficulty)
m_37724_(C_468_ arg0)
public float
w()
getEnchantOdds()
method_20025()
getEnchantmentChance()
m_37783_()
public void
a(bdr arg0)
addHeroOfTheVillage(Entity arg0)
method_20017(class_1297 arg0)
addHero(Entity entity)
m_37726_(C_507_ arg0)