Class CreeperEntity
- All Implemented Interfaces:
ComponentsAccess
,Attackable
,DataTracked
,EquipmentHolder
,Leashable
,Monster
,Targeter
,ScoreHolder
,Nameable
,EntityLike
,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/mob/CreeperEntity
intermediary net/minecraft/class_1548
official cow
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData
<Boolean> private int
private static final boolean
private static final byte
private static final short
private static final boolean
private int
private static final TrackedData
<Integer> private int
private int
private static final TrackedData
<Boolean> private int
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, DEFAULT_CAN_PICKUP_LOOT_CHANCE, experiencePoints, field_35039, goalSelector, jumpControl, lookControl, MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, equipment, EQUIPMENT_SLOT_ID, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, interpolator, itemUseTimeLeft, jumping, lastAttackedTicks, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTH
Fields inherited from interface net.minecraft.entity.mob.Monster
NORMAL_MONSTER_EXPERIENCE, SMALL_MONSTER_EXPERIENCE, STRONG_MONSTER_EXPERIENCE, STRONGER_MONSTER_EXPERIENCE, WITHER_EXPERIENCE, ZERO_EXPERIENCE
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dropEquipment
(ServerWorld world, DamageSource source, boolean causedByPlayer) private void
explode()
protected SoundEvent
int
protected SoundEvent
getHurtSound
(DamageSource source) float
getLerpedFuseTime
(float tickProgress) int
Returns the maximum height of a fall the entity takes during pathfinding.boolean
handleFallDamage
(double fallDistance, float damagePerDistance, DamageSource damageSource) Called when an entity falls.void
ignite()
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected void
protected ActionResult
interactMob
(PlayerEntity player, Hand hand) boolean
boolean
void
void
onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.void
Reads custom data fromnbt
.void
setFuseSpeed
(int fuseSpeed) void
setTarget
(@Nullable LivingEntity target) boolean
private void
void
tick()
Ticks this entity.boolean
tryAttack
(ServerWorld world, Entity target) void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.mob.HostileEntity
canSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getFallSounds, getPathfindingFavor, getProjectileType, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isDisallowedInPeaceful, isSpawnDark, shouldDropExperience, shouldDropLoot, tickMovement, updateDespawnCounter
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, breakLongLeash, canActVoluntarily, canBeLeashed, canDispenserEquipSlot, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createEquipmentInventory, createMobAttributes, createNavigation, dropAllForeignEquipment, dropForeignEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, getAmbientSound, getAttackBox, getBodyArmor, getControllingPassenger, getEquipmentDropChances, getEquipmentForSlot, getExperienceToDrop, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getPreferredWeapons, getTarget, getTargetInBrain, getVisibilityCache, handleStatus, hasPositionTarget, hasSaddleEquipped, initEquipment, initialize, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, mobTick, movesIndependently, onEatingGrass, onFinishPathfinding, onLeashRemoved, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setDropGuaranteed, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tickNewAi, tryEquip, turnHead, updateAttribute, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createEquipment, createLivingAttributes, damage, damageArmor, damageEquipment, damageHelmet, deserializeBrain, disableExperienceDropping, drop, dropExperience, dropInventory, dropItem, endCombat, enterCombat, equipStack, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageBlockedAmount, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectFadeFactor, getEffectiveGravity, getEquippedStack, getEquipSound, getExperienceToDrop, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getInterpolator, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLuck, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, playSound, positionInPortal, positionInPortal, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropExperience, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopGliding, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInSneakingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, setApplicableComponent, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTyped
Methods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, detachLeash, detachLeashWithoutDrop, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
FUSE_SPEED
- Mappings:
Namespace Name Mixin selector named FUSE_SPEED
Lnet/minecraft/entity/mob/CreeperEntity;FUSE_SPEED:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7230
Lnet/minecraft/class_1548;field_7230:Lnet/minecraft/class_2940;
official a
Lcow;a:Laku;
-
CHARGED
- Mappings:
Namespace Name Mixin selector named CHARGED
Lnet/minecraft/entity/mob/CreeperEntity;CHARGED:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7224
Lnet/minecraft/class_1548;field_7224:Lnet/minecraft/class_2940;
official b
Lcow;b:Laku;
-
IGNITED
- Mappings:
Namespace Name Mixin selector named IGNITED
Lnet/minecraft/entity/mob/CreeperEntity;IGNITED:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7231
Lnet/minecraft/class_1548;field_7231:Lnet/minecraft/class_2940;
official c
Lcow;c:Laku;
-
DEFAULT_CHARGED
private static final boolean DEFAULT_CHARGED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_CHARGED
Lnet/minecraft/entity/mob/CreeperEntity;DEFAULT_CHARGED:Z
intermediary field_57666
Lnet/minecraft/class_1548;field_57666:Z
official d
Lcow;d:Z
-
DEFAULT_IGNITED
private static final boolean DEFAULT_IGNITED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_IGNITED
Lnet/minecraft/entity/mob/CreeperEntity;DEFAULT_IGNITED:Z
intermediary field_57667
Lnet/minecraft/class_1548;field_57667:Z
official e
Lcow;e:Z
-
DEFAULT_FUSE
private static final short DEFAULT_FUSE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_FUSE
Lnet/minecraft/entity/mob/CreeperEntity;DEFAULT_FUSE:S
intermediary field_57668
Lnet/minecraft/class_1548;field_57668:S
official f
Lcow;f:S
-
DEFAULT_EXPLOSION_RADIUS
private static final byte DEFAULT_EXPLOSION_RADIUS- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_EXPLOSION_RADIUS
Lnet/minecraft/entity/mob/CreeperEntity;DEFAULT_EXPLOSION_RADIUS:B
intermediary field_57665
Lnet/minecraft/class_1548;field_57665:B
official bI
Lcow;bI:B
-
lastFuseTime
private int lastFuseTime- Mappings:
Namespace Name Mixin selector named lastFuseTime
Lnet/minecraft/entity/mob/CreeperEntity;lastFuseTime:I
intermediary field_7229
Lnet/minecraft/class_1548;field_7229:I
official bJ
Lcow;bJ:I
-
currentFuseTime
private int currentFuseTime- Mappings:
Namespace Name Mixin selector named currentFuseTime
Lnet/minecraft/entity/mob/CreeperEntity;currentFuseTime:I
intermediary field_7227
Lnet/minecraft/class_1548;field_7227:I
official bK
Lcow;bK:I
-
fuseTime
private int fuseTime- Mappings:
Namespace Name Mixin selector named fuseTime
Lnet/minecraft/entity/mob/CreeperEntity;fuseTime:I
intermediary field_7228
Lnet/minecraft/class_1548;field_7228:I
official bL
Lcow;bL:I
-
explosionRadius
private int explosionRadius- Mappings:
Namespace Name Mixin selector named explosionRadius
Lnet/minecraft/entity/mob/CreeperEntity;explosionRadius:I
intermediary field_7225
Lnet/minecraft/class_1548;field_7225:I
official bM
Lcow;bM:I
-
headsDropped
private int headsDropped- Mappings:
Namespace Name Mixin selector named headsDropped
Lnet/minecraft/entity/mob/CreeperEntity;headsDropped:I
intermediary field_7226
Lnet/minecraft/class_1548;field_7226:I
official bN
Lcow;bN:I
-
-
Constructor Details
-
CreeperEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbxe;<init>(Lbxn;Ldkj;)V
-
-
Method Details
-
initGoals
protected void initGoals() -
createCreeperAttributes
- Mappings:
Namespace Name Mixin selector named createCreeperAttributes
Lnet/minecraft/entity/mob/CreeperEntity;createCreeperAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26908
Lnet/minecraft/class_1548;method_26908()Lnet/minecraft/class_5132$class_5133;
official m
Lcow;m()Lbzk$a;
-
getSafeFallDistance
public int getSafeFallDistance()Returns the maximum height of a fall the entity takes during pathfinding.- Overrides:
getSafeFallDistance
in classMobEntity
- Returns:
- the maximum height of a fall the entity takes during pathfinding
- Mappings:
Namespace Name Mixin selector named getSafeFallDistance
Lnet/minecraft/entity/Entity;getSafeFallDistance()I
intermediary method_5850
Lnet/minecraft/class_1297;method_5850()I
official cE
Lbxe;cE()I
-
handleFallDamage
public boolean handleFallDamage(double fallDistance, float damagePerDistance, DamageSource damageSource) Called when an entity falls.Flying mobs and mobs immune to fall damage should override this to do nothing. Mobs with reduced fall damage should override this method to apply reduced damage instead. Some entities explode instead of applying fall damage, like
TntMinecartEntity
.- Overrides:
handleFallDamage
in classLivingEntity
- Returns:
- whether to play the sound when falling on honey block;
false
for all entities except horses and llamas - Mappings:
Namespace Name Mixin selector named handleFallDamage
Lnet/minecraft/entity/Entity;handleFallDamage(DFLnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_5747
Lnet/minecraft/class_1297;method_5747(DFLnet/minecraft/class_1282;)Z
official a
Lbxe;a(DFLbvt;)Z
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classMobEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbxe;a(Laky$a;)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbxe;b(Lua;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbt
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbxe;a(Lua;)V
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in classMobEntity
- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();
should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
MobEntity.baseTick()
. - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official g
Lbxe;g()V
-
setTarget
-
getHurtSound
- Overrides:
getHurtSound
in classHostileEntity
- Mappings:
Namespace Name Mixin selector named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
official e
Lbyf;e(Lbvt;)Lawx;
-
getDeathSound
- Overrides:
getDeathSound
in classHostileEntity
- Mappings:
Namespace Name Mixin selector named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
official j_
Lbyf;j_()Lawx;
-
dropEquipment
- Overrides:
dropEquipment
in classMobEntity
- Mappings:
Namespace Name Mixin selector named dropEquipment
Lnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;Z)V
intermediary method_6099
Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;Z)V
official a
Lbyf;a(Lasb;Lbvt;Z)V
-
tryAttack
- Overrides:
tryAttack
in classMobEntity
- Mappings:
Namespace Name Mixin selector named tryAttack
Lnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Z
intermediary method_6121
Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Z
official c
Lbyf;c(Lasb;Lbxe;)Z
-
isCharged
public boolean isCharged()- Mappings:
Namespace Name Mixin selector named isCharged
Lnet/minecraft/entity/mob/CreeperEntity;isCharged()Z
intermediary method_61492
Lnet/minecraft/class_1548;method_61492()Z
official p
Lcow;p()Z
-
getLerpedFuseTime
public float getLerpedFuseTime(float tickProgress) - Mappings:
Namespace Name Mixin selector named getLerpedFuseTime
Lnet/minecraft/entity/mob/CreeperEntity;getLerpedFuseTime(F)F
intermediary method_7003
Lnet/minecraft/class_1548;method_7003(F)F
official J
Lcow;J(F)F
-
getFuseSpeed
public int getFuseSpeed()- Mappings:
Namespace Name Mixin selector named getFuseSpeed
Lnet/minecraft/entity/mob/CreeperEntity;getFuseSpeed()I
intermediary method_7007
Lnet/minecraft/class_1548;method_7007()I
official u
Lcow;u()I
-
setFuseSpeed
public void setFuseSpeed(int fuseSpeed) - Mappings:
Namespace Name Mixin selector named setFuseSpeed
Lnet/minecraft/entity/mob/CreeperEntity;setFuseSpeed(I)V
intermediary method_7005
Lnet/minecraft/class_1548;method_7005(I)V
official b
Lcow;b(I)V
-
onStruckByLightning
Called when the entity is struck by lightning. This sets the entity on fire and deals lightning damage by default; entities that do not take such damage should override this method to do nothing.- Overrides:
onStruckByLightning
in classEntity
- Mappings:
Namespace Name Mixin selector named onStruckByLightning
Lnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)V
intermediary method_5800
Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V
official a
Lbxe;a(Lasb;Lbye;)V
-
interactMob
- Overrides:
interactMob
in classMobEntity
- Mappings:
Namespace Name Mixin selector named interactMob
Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_5992
Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official b
Lbyh;b(Lcsi;Lbvb;)Lbvc;
-
explode
private void explode()- Mappings:
Namespace Name Mixin selector named explode
Lnet/minecraft/entity/mob/CreeperEntity;explode()V
intermediary method_7006
Lnet/minecraft/class_1548;method_7006()V
official gy
Lcow;gy()V
-
spawnEffectsCloud
private void spawnEffectsCloud()- Mappings:
Namespace Name Mixin selector named spawnEffectsCloud
Lnet/minecraft/entity/mob/CreeperEntity;spawnEffectsCloud()V
intermediary method_7001
Lnet/minecraft/class_1548;method_7001()V
official gB
Lcow;gB()V
-
isIgnited
public boolean isIgnited()- Mappings:
Namespace Name Mixin selector named isIgnited
Lnet/minecraft/entity/mob/CreeperEntity;isIgnited()Z
intermediary method_7000
Lnet/minecraft/class_1548;method_7000()Z
official gu
Lcow;gu()Z
-
ignite
public void ignite()- Mappings:
Namespace Name Mixin selector named ignite
Lnet/minecraft/entity/mob/CreeperEntity;ignite()V
intermediary method_7004
Lnet/minecraft/class_1548;method_7004()V
official gv
Lcow;gv()V
-
shouldDropHead
public boolean shouldDropHead()- Mappings:
Namespace Name Mixin selector named shouldDropHead
Lnet/minecraft/entity/mob/CreeperEntity;shouldDropHead()Z
intermediary method_7008
Lnet/minecraft/class_1548;method_7008()Z
official gw
Lcow;gw()Z
-
onHeadDropped
public void onHeadDropped()- Mappings:
Namespace Name Mixin selector named onHeadDropped
Lnet/minecraft/entity/mob/CreeperEntity;onHeadDropped()V
intermediary method_7002
Lnet/minecraft/class_1548;method_7002()V
official gx
Lcow;gx()V
-