net.minecraft.entity

public class LightningEntity

extends Entity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible

net.minecraft.world.entity.LightningBolt
net.minecraft.class_1538
net.minecraft.entity.LightningEntity

Field summary

Modifier and TypeField
private static final int
START_LIFE
field_30062
field_30062
private static final double
DAMAGE_RADIUS
field_33906
field_33906
private static final double
DETECTION_RADIUS
field_33907
field_33907
private int
life
field_7185
ambientTick
public long
seed
field_7186
seed
private int
flashes
field_7183
remainingActions
private boolean
visualOnly
field_7184
cosmetic
private ServerPlayerEntity
cause
field_7182
channeler
private final Set<Entity>
hitEntities
field_33904
struckEntities
private int
blocksSetOnFire
field_33905
blocksSetOnFire

Constructor summary

ModifierConstructor
public (EntityType<? extends LightningEntity> type, World level)

Method summary

Modifier and TypeMethod
public void
setVisualOnly(boolean visualOnly)
method_29498(boolean arg0)
setCosmetic(boolean cosmetic)
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
public ServerPlayerEntity
getCause()
method_35052()
getChanneler()
public void
setCause(ServerPlayer cause)
method_6961(class_3222 arg0)
setChanneler(ServerPlayerEntity channeler)
private void
powerLightningRod()
method_31499()
powerLightningRod()
public void
tick()
method_5773()
tick()
private BlockPos
getStrikePosition()
method_36607()
getAffectedBlockPos()
private void
spawnFire(int additionalSources)
method_6960(int arg0)
spawnFire(int spreadAttempts)
private static void
clearCopperOnLightningStrike(Level level, BlockPos struckPos)
method_34707(class_1937 arg0, class_2338 arg1)
cleanOxidation(World world, BlockPos pos)
private static void
randomWalkCleaningCopper(Level level, BlockPos originalStrikePos, BlockPos$MutableBlockPos workPos, int stepCount)
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)
private static Optional<BlockPos>
randomStepCleaningCopper(Level level, BlockPos pos)
method_34710(class_1937 arg0, class_2338 arg1)
cleanOxidationAround(World world, BlockPos pos)
public boolean
shouldRenderAtSqrDistance(double distance)
method_5640(double arg0)
shouldRender(double arg0)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
public int
getBlocksSetOnFire()
method_37220()
getBlocksSetOnFire()
public Stream<Entity>
getHitEntities()
method_37221()
getStruckEntities()
public final boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
private static void
lambda$randomStepCleaningCopper$0(Level arg0, BlockPos arg1, BlockState arg2)
method_34708(class_1937 arg0, class_2338 arg1, class_2680 arg2)
method_34708(World arg0, BlockPos arg1, BlockState state)
private boolean
lambda$tick$1(ServerPlayer arg0)
method_37219(class_3222 arg0)
method_37219(ServerPlayerEntity arg0)
private boolean
lambda$tick$0(Entity arg0)
method_37218(class_1297 arg0)
method_37218(Entity arg0)