net.minecraft.world.entity

public class LightningBolt

extends Entity

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource

bjf
net.minecraft.world.entity.LightningBolt
net.minecraft.class_1538
net.minecraft.entity.LightningEntity
net.minecraft.src.C_523_
net.minecraft.world.entity.EntityLightning

Field summary

Modifier and TypeField
private static final int
c
START_LIFE
field_30062
field_30062
f_147136_
private static final double
d
DAMAGE_RADIUS
field_33906
field_33906
f_147137_
private static final double
e
DETECTION_RADIUS
field_33907
field_33907
f_147138_
private int
f
life
field_7185
ambientTick
f_20860_
public long
b
seed
field_7186
seed
f_20859_
private int
g
flashes
field_7183
remainingActions
f_20861_
private boolean
h
visualOnly
field_7184
cosmetic
f_20862_
private ServerPlayer
i
cause
field_7182
channeler
f_20863_
private final Set<Entity>
j
hitEntities
field_33904
struckEntities
f_147134_
private int
k
blocksSetOnFire
field_33905
blocksSetOnFire
f_147135_

Constructor summary

ModifierConstructor
public (EntityType<? extends LightningBolt> p_20866_, Level arg1)

Method summary

Modifier and TypeMethod
public void
a(boolean arg0)
setVisualOnly(boolean arg0)
method_29498(boolean arg0)
setCosmetic(boolean cosmetic)
m_20874_(boolean arg0)
public SoundSource
da()
getSoundSource()
method_5634()
getSoundCategory()
m_5720_()
public ServerPlayer
q()
getCause()
method_35052()
getChanneler()
m_147158_()
public void
b(akr arg0)
setCause(ServerPlayer arg0)
method_6961(class_3222 arg0)
setChanneler(ServerPlayerEntity channeler)
m_20879_(C_13_ arg0)
private void
v()
powerLightningRod()
method_31499()
powerLightningRod()
m_147161_()
public void
l()
tick()
method_5773()
tick()
m_8119_()
private BlockPos
w()
getStrikePosition()
method_36607()
getAffectedBlockPos()
m_147162_()
private void
b(int arg0)
spawnFire(int arg0)
method_6960(int arg0)
spawnFire(int spreadAttempts)
m_20870_(int arg0)
private static void
b(cpv arg0, gw arg1)
clearCopperOnLightningStrike(Level arg0, BlockPos arg1)
method_34707(class_1937 arg0, class_2338 arg1)
cleanOxidation(World world, BlockPos pos)
m_147150_(C_1596_ p_147151_, C_4675_ p_147152_)
private static void
a(cpv arg0, gw arg1, gw$a arg2, int arg3)
randomWalkCleaningCopper(Level arg0, BlockPos arg1, BlockPos$MutableBlockPos arg2, int arg3)
method_34709(class_1937 arg0, class_2338 arg1, class_2338$class_2339 arg2, int arg3)
cleanOxidationAround(World world, BlockPos pos, BlockPos$Mutable mutablePos, int count)
m_147145_(C_1596_ p_147146_, C_4675_ p_147147_, C_4675_$C_4681_ p_147148_, int p_147149_)
private static Optional<BlockPos>
c(cpv arg0, gw arg1)
randomStepCleaningCopper(Level arg0, BlockPos arg1)
method_34710(class_1937 arg0, class_2338 arg1)
cleanOxidationAround(World world, BlockPos pos)
m_147153_(C_1596_ p_147154_, C_4675_ p_147155_)
public boolean
a(double arg0)
shouldRenderAtSqrDistance(double arg0)
method_5640(double arg0)
shouldRender(double arg0)
m_6783_(double arg0)
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
protected void
a(qw arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
protected void
b(qw arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public int
s()
getBlocksSetOnFire()
method_37220()
getBlocksSetOnFire()
m_147159_()
public Stream<Entity>
t()
getHitEntities()
method_37221()
getStruckEntities()
m_147160_()