Package net.minecraft.entity
Class LightningEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.LightningEntity
- All Implemented Interfaces:
EntityLike,CommandOutput,Nameable
public class LightningEntity extends Entity
- Mappings:
Namespace Name official arhintermediary net/minecraft/class_1538named net/minecraft/entity/LightningEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.class_5799, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
Fields Modifier and Type Field Description private intambientTickprivate ServerPlayerEntitychannelerprivate booleancosmeticprivate intremainingActionslongseedFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_28629, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yawFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors Constructor Description LightningEntity(EntityType<? extends LightningEntity> type, World world) -
Method Summary
Modifier and Type Method Description Packet<?>createSpawnPacket()SoundCategorygetSoundCategory()protected voidinitDataTracker()private voidpowerLightningRod()protected voidreadCustomDataFromTag(CompoundTag tag)voidsetChanneler(ServerPlayerEntity channeler)voidsetCosmetic(boolean cosmetic)booleanshouldRender(double distance)private voidspawnFire(int spreadAttempts)voidtick()protected voidwriteCustomDataToTag(CompoundTag tag)Methods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, animateDamage, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFly, canFreeze, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, checkWaterState, collides, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, damage, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29241, method_29919, method_30330, method_30633, method_30951, method_31744, method_32318, method_32877, method_33332, method_33567, method_33568, method_33569, method_33570, method_33571, method_33573, method_33574, method_33575, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengers, streamPassengersRecursively, teleport, tickInVoid, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
ambientTick
private int ambientTick- Mappings:
Namespace Name Mixin selector official cLarh;c: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 bLarh;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 dLarh;d: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 eLarh;e:Zintermediary field_7184Lnet/minecraft/class_1538;field_7184:Znamed cosmeticLnet/minecraft/entity/LightningEntity;cosmetic:Z
-
channeler
- Mappings:
Namespace Name Mixin selector official fLarh;f:Laaw;intermediary field_7182Lnet/minecraft/class_1538;field_7182:Lnet/minecraft/class_3222;named channelerLnet/minecraft/entity/LightningEntity;channeler:Lnet/minecraft/server/network/ServerPlayerEntity;
-
-
Constructor Details
-
LightningEntity
- Mappings:
Namespace Name Mixin selector official <init>Laqv;<init>(Laqz;Lbtv;)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 aLarh;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 cELaqv;cE()Laeh;intermediary method_5634Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;named getSoundCategoryLnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
-
setChanneler
- Mappings:
Namespace Name Mixin selector official dLarh;d(Laaw;)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 hLarh;h()Vintermediary method_31499Lnet/minecraft/class_1538;method_31499()Vnamed powerLightningRodLnet/minecraft/entity/LightningEntity;powerLightningRod()V
-
tick
public void tick() -
spawnFire
private void spawnFire(int spreadAttempts)- Mappings:
Namespace Name Mixin selector official aLarh;a(I)Vintermediary method_6960Lnet/minecraft/class_1538;method_6960(I)Vnamed spawnFireLnet/minecraft/entity/LightningEntity;spawnFire(I)V
-
shouldRender
- Overrides:
shouldRenderin classEntity- Mappings:
Namespace Name Mixin selector official aLaqv;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 eLaqv;e()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
readCustomDataFromTag
- Specified by:
readCustomDataFromTagin classEntity- Mappings:
Namespace Name Mixin selector official aLaqv;a(Lmq;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromTagLnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
writeCustomDataToTag
- Specified by:
writeCustomDataToTagin classEntity- Mappings:
Namespace Name Mixin selector official bLaqv;b(Lmq;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToTagLnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
-
createSpawnPacket
- Specified by:
createSpawnPacketin classEntity- Mappings:
Namespace Name Mixin selector official PLaqv;P()Lpa;intermediary method_18002Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;named createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
-