net.minecraft.world.entity.raid

public class Raid

coi
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 Component
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_RAID_OMEN_LEVEL
field_30673
field_30673
f_316707_
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
RAID_BAR_VICTORY_COMPONENT
field_19019
VICTORY_TITLE
f_37668_
private static final Component
w
RAID_BAR_DEFEAT_COMPONENT
field_19020
DEFEAT_TITLE
f_37669_
private static final int
x
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>
y
groupToLeaderMap
field_16615
waveToCaptain
f_37670_
private final Map<Integer, Set<Raider>>
z
groupRaiderMap
field_16618
waveToRaiders
f_37671_
private final Set<UUID>
A
heroesOfTheVillage
field_19021
heroesOfTheVillage
f_37672_
private long
B
ticksActive
field_16605
ticksActive
f_37673_
private BlockPos
C
center
field_16613
center
f_37674_
private final ServerLevel
D
level
field_16619
world
f_37675_
private boolean
E
started
field_16611
started
f_37676_
private final int
F
id
field_16625
id
f_37677_
private float
G
totalHealth
field_16620
totalHealth
f_37678_
private int
H
raidOmenLevel
field_16623
badOmenLevel
f_316894_
private boolean
I
active
field_16606
active
f_37680_
private int
J
groupsSpawned
field_16621
wavesSpawned
f_37681_
private final ServerBossEvent
K
raidEvent
field_16607
bar
f_37682_
private int
L
postRaidTicks
field_16616
postRaidTicks
f_37683_
private int
M
raidCooldownTicks
field_16614
preRaidTicks
f_37684_
private final RandomSource
N
random
field_16608
random
f_37685_
private final int
O
numGroups
field_19022
waveCount
f_37686_
private Raid$RaidStatus
P
status
field_19023
status
f_37687_
private int
Q
celebrationTicks
field_19024
finishCooldown
f_37688_
private Optional<BlockPos>
R
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>
w()
validPlayer()
method_16501()
isInRaidDistance()
m_37784_()
private void
x()
updatePlayers()
method_16499()
updateBarToPlayers()
m_37785_()
public int
l()
getMaxRaidOmenLevel()
method_16514()
getMaxAcceptableBadOmenLevel()
m_37772_()
public int
m()
getRaidOmenLevel()
method_16493()
getBadOmenLevel()
m_322744_()
public void
a(int arg0)
setRaidOmenLevel(int arg0)
method_35211(int arg0)
setBadOmenLevel(int badOmenLevel)
m_319881_(int arg0)
public boolean
a(aqv arg0)
absorbRaidOmen(ServerPlayer arg0)
method_16518(class_3222 arg0)
start(ServerPlayerEntity arg0)
m_321520_(C_13_ arg0)
public void
n()
stop()
method_16506()
invalidate()
m_37774_()
public void
o()
tick()
method_16509()
tick()
m_37775_()
private void
y()
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
z()
hasMoreWaves()
method_16833()
shouldSpawnMoreGroups()
m_37698_()
private boolean
A()
isFinalWave()
method_20012()
hasSpawnedFinalWave()
m_37699_()
private boolean
B()
hasBonusWave()
method_20013()
hasExtraWave()
m_37700_()
private boolean
C()
hasSpawnedBonusWave()
method_20014()
hasSpawnedExtraWave()
m_37701_()
private boolean
D()
shouldSpawnBonusGroup()
method_20015()
isSpawningExtraWave()
m_37702_()
private void
E()
updateRaiders()
method_16834()
removeObsoleteRaiders()
m_37703_()
private void
a(jd arg0)
playSound(BlockPos arg0)
method_16521(class_2338 arg0)
playRaidHorn(BlockPos pos)
m_37743_(C_4675_ arg0)
private void
b(jd arg0)
spawnGroup(BlockPos arg0)
method_16522(class_2338 arg0)
spawnNextWave(BlockPos pos)
m_37755_(C_4675_ arg0)
public void
a(int arg0, coj arg1, jd 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
F()
shouldSpawnGroup()
method_16519()
canSpawnRaiders()
m_37704_()
public int
r()
getTotalRaidersAlive()
method_16517()
getRaiderCount()
m_37778_()
public void
a(coj 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
G()
setDirty()
method_16520()
markDirty()
m_37705_()
public static ItemStack
a(jn<dpx> arg0)
getLeaderBannerInstance(HolderGetter<BannerPattern> arg0)
method_16515(class_7871<class_2582> arg0)
getOminousBanner(RegistryEntryLookup<BannerPattern> bannerPatternLookup)
m_37779_(C_254583_<C_1977_> p_331203_)
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, coj 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, coj 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, coj 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
s()
getCenter()
method_16495()
getCenter()
m_37780_()
private void
c(jd arg0)
setCenter(BlockPos arg0)
method_20509(class_2338 arg0)
setCenter(BlockPos center)
m_37760_(C_4675_ arg0)
public int
t()
getId()
method_16494()
getRaidId()
m_37781_()
private int
a(coi$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(coi$b arg0, ayw arg1, int arg2, bqp 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
u()
isActive()
method_16504()
isActive()
m_37782_()
public CompoundTag
a(ub arg0)
save(CompoundTag arg0)
method_16502(class_2487 arg0)
writeNbt(NbtCompound nbt)
m_37747_(C_4917_ arg0)
public int
a(bqo arg0)
getNumGroups(Difficulty arg0)
method_20016(class_1267 arg0)
getMaxWaves(Difficulty difficulty)
m_37724_(C_468_ arg0)
public float
v()
getEnchantOdds()
method_20025()
getEnchantmentChance()
m_37783_()
public void
a(bsr arg0)
addHeroOfTheVillage(Entity arg0)
method_20017(class_1297 arg0)
addHero(Entity entity)
m_37726_(C_507_ arg0)