Package net.minecraft.entity
Class LightningEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.LightningEntity
- All Implemented Interfaces:
CommandOutput,Nameable,EntityLike
- Mappings:
Namespace Name official bbeintermediary net/minecraft/class_1538named net/minecraft/entity/LightningEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate @Nullable ServerPlayerEntityprivate booleanprivate static final intprivate static final doubleprivate static final doubleprivate intlongFields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_36331, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_RIDING_COOLDOWN, MAX_SCOREBOARD_TAGS, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, onGround, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, stepHeight, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, VELOCITY_AFFECTING_POS_Y_OFFSET, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, worldFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcleanOxidation(World world, BlockPos pos) cleanOxidationAround(World world, BlockPos pos) private static voidcleanOxidationAround(World world, BlockPos pos, BlockPos.Mutable mutablePos, int count) Packet<?>private BlockPosintprotected voidprivate voidprotected voidvoidsetChanneler(@Nullable ServerPlayerEntity channeler) voidsetCosmetic(boolean cosmetic) booleanshouldRender(double distance) private voidspawnFire(int spreadAttempts) voidtick()protected voidMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyDamageEffects, applyMirror, applyRotation, asMessageSender, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, checkWaterState, collides, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, damage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, getAir, getArmorItems, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEventSource, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSplashSound, getStackReference, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCollidedSoftly, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasPrimaryPassenger, hasVehicle, hasWings, interact, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playExtinguishSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, resetNetherPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldEscapePowderSnow, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickInVoid, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
field_30062
private static final int field_30062- See Also:
- Mappings:
Namespace Name Mixin selector official cLbbe;c:Iintermediary field_30062Lnet/minecraft/class_1538;field_30062:Inamed field_30062Lnet/minecraft/entity/LightningEntity;field_30062:I
-
field_33906
private static final double field_33906- See Also:
- Mappings:
Namespace Name Mixin selector official dLbbe;d:Dintermediary field_33906Lnet/minecraft/class_1538;field_33906:Dnamed field_33906Lnet/minecraft/entity/LightningEntity;field_33906:D
-
field_33907
private static final double field_33907- See Also:
- Mappings:
Namespace Name Mixin selector official eLbbe;e:Dintermediary field_33907Lnet/minecraft/class_1538;field_33907:Dnamed field_33907Lnet/minecraft/entity/LightningEntity;field_33907:D
-
ambientTick
private int ambientTick- Mappings:
Namespace Name Mixin selector official fLbbe;f:Iintermediary field_7185Lnet/minecraft/class_1538;field_7185:Inamed ambientTickLnet/minecraft/entity/LightningEntity;ambientTick:I
-
seed
public long seed- Mappings:
Namespace Name Mixin selector official bLbbe;b:Jintermediary field_7186Lnet/minecraft/class_1538;field_7186:Jnamed seedLnet/minecraft/entity/LightningEntity;seed:J
-
remainingActions
private int remainingActions- Mappings:
Namespace Name Mixin selector official aoLbbe;ao:Iintermediary field_7183Lnet/minecraft/class_1538;field_7183:Inamed remainingActionsLnet/minecraft/entity/LightningEntity;remainingActions:I
-
cosmetic
private boolean cosmetic- Mappings:
Namespace Name Mixin selector official apLbbe;ap:Zintermediary field_7184Lnet/minecraft/class_1538;field_7184:Znamed cosmeticLnet/minecraft/entity/LightningEntity;cosmetic:Z
-
channeler
- Mappings:
Namespace Name Mixin selector official aqLbbe;aq:Lafp;intermediary field_7182Lnet/minecraft/class_1538;field_7182:Lnet/minecraft/class_3222;named channelerLnet/minecraft/entity/LightningEntity;channeler:Lnet/minecraft/server/network/ServerPlayerEntity;
-
struckEntities
- Mappings:
Namespace Name Mixin selector official arLbbe;ar:Ljava/util/Set;intermediary field_33904Lnet/minecraft/class_1538;field_33904:Ljava/util/Set;named struckEntitiesLnet/minecraft/entity/LightningEntity;struckEntities:Ljava/util/Set;
-
blocksSetOnFire
private int blocksSetOnFire- Mappings:
Namespace Name Mixin selector official asLbbe;as:Iintermediary field_33905Lnet/minecraft/class_1538;field_33905:Inamed blocksSetOnFireLnet/minecraft/entity/LightningEntity;blocksSetOnFire:I
-
-
Constructor Details
-
LightningEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbaq;<init>(Lbau;Lcga;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
setCosmetic
public void setCosmetic(boolean cosmetic) - Mappings:
Namespace Name Mixin selector official aLbbe;a(Z)Vintermediary method_29498Lnet/minecraft/class_1538;method_29498(Z)Vnamed setCosmeticLnet/minecraft/entity/LightningEntity;setCosmetic(Z)V
-
getSoundCategory
- Overrides:
getSoundCategoryin classEntity- Mappings:
Namespace Name Mixin selector official cSLbaq;cS()Lajf;intermediary method_5634Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;named getSoundCategoryLnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
-
getChanneler
- Mappings:
Namespace Name Mixin selector official hLbbe;h()Lafp;intermediary method_35052Lnet/minecraft/class_1538;method_35052()Lnet/minecraft/class_3222;named getChannelerLnet/minecraft/entity/LightningEntity;getChanneler()Lnet/minecraft/server/network/ServerPlayerEntity;
-
setChanneler
- Mappings:
Namespace Name Mixin selector official bLbbe;b(Lafp;)Vintermediary method_6961Lnet/minecraft/class_1538;method_6961(Lnet/minecraft/class_3222;)Vnamed setChannelerLnet/minecraft/entity/LightningEntity;setChanneler(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
powerLightningRod
private void powerLightningRod()- Mappings:
Namespace Name Mixin selector official lLbbe;l()Vintermediary method_31499Lnet/minecraft/class_1538;method_31499()Vnamed powerLightningRodLnet/minecraft/entity/LightningEntity;powerLightningRod()V
-
tick
public void tick() -
getAffectedBlockPos
- Mappings:
Namespace Name Mixin selector official nLbbe;n()Lgt;intermediary method_36607Lnet/minecraft/class_1538;method_36607()Lnet/minecraft/class_2338;named getAffectedBlockPosLnet/minecraft/entity/LightningEntity;getAffectedBlockPos()Lnet/minecraft/util/math/BlockPos;
-
spawnFire
private void spawnFire(int spreadAttempts) - Mappings:
Namespace Name Mixin selector official aLbbe;a(I)Vintermediary method_6960Lnet/minecraft/class_1538;method_6960(I)Vnamed spawnFireLnet/minecraft/entity/LightningEntity;spawnFire(I)V
-
cleanOxidation
- Mappings:
Namespace Name Mixin selector official bLbbe;b(Lcga;Lgt;)Vintermediary method_34707Lnet/minecraft/class_1538;method_34707(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed cleanOxidationLnet/minecraft/entity/LightningEntity;cleanOxidation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
cleanOxidationAround
private static void cleanOxidationAround(World world, BlockPos pos, BlockPos.Mutable mutablePos, int count) - Mappings:
Namespace Name Mixin selector official aLbbe;a(Lcga;Lgt;Lgt$a;I)Vintermediary method_34709Lnet/minecraft/class_1538;method_34709(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338$class_2339;I)Vnamed cleanOxidationAroundLnet/minecraft/entity/LightningEntity;cleanOxidationAround(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos$Mutable;I)V
-
cleanOxidationAround
- Mappings:
Namespace Name Mixin selector official cLbbe;c(Lcga;Lgt;)Ljava/util/Optional;intermediary method_34710Lnet/minecraft/class_1538;method_34710(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Ljava/util/Optional;named cleanOxidationAroundLnet/minecraft/entity/LightningEntity;cleanOxidationAround(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
-
shouldRender
public boolean shouldRender(double distance) - Overrides:
shouldRenderin classEntity- Mappings:
Namespace Name Mixin selector official aLbaq;a(D)Zintermediary method_5640Lnet/minecraft/class_1297;method_5640(D)Znamed shouldRenderLnet/minecraft/entity/Entity;shouldRender(D)Z
-
initDataTracker
protected void initDataTracker()- Specified by:
initDataTrackerin classEntity- Mappings:
Namespace Name Mixin selector official a_Lbaq;a_()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
readCustomDataFromNbt
- Specified by:
readCustomDataFromNbtin classEntity- Mappings:
Namespace Name Mixin selector official aLbaq;a(Lpj;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeCustomDataToNbt
- Specified by:
writeCustomDataToNbtin classEntity- Mappings:
Namespace Name Mixin selector official bLbaq;b(Lpj;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
createSpawnPacket
- Specified by:
createSpawnPacketin classEntity- Mappings:
Namespace Name Mixin selector official SLbaq;S()Lso;intermediary method_18002Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;named createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
-
getBlocksSetOnFire
public int getBlocksSetOnFire()- Mappings:
Namespace Name Mixin selector official iLbbe;i()Iintermediary method_37220Lnet/minecraft/class_1538;method_37220()Inamed getBlocksSetOnFireLnet/minecraft/entity/LightningEntity;getBlocksSetOnFire()I
-
getStruckEntities
- Mappings:
Namespace Name Mixin selector official jLbbe;j()Ljava/util/stream/Stream;intermediary method_37221Lnet/minecraft/class_1538;method_37221()Ljava/util/stream/Stream;named getStruckEntitiesLnet/minecraft/entity/LightningEntity;getStruckEntities()Ljava/util/stream/Stream;
-