Class GuardianEntity
- All Implemented Interfaces:
Attackable,DataTracked,EquipmentHolder,Leashable,Monster,Targeter,ScoreHolder,CommandOutput,Nameable,EntityLike
- Direct Known Subclasses:
ElderGuardianEntity
- Mappings:
Namespace Name named net/minecraft/entity/mob/GuardianEntityintermediary net/minecraft/class_1577official cjz
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classNested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData<Integer> private intprivate @Nullable LivingEntityprivate booleanprivate floatprivate floatprivate static final TrackedData<Boolean> private floatprivate floatprivate floatprotected @Nullable WanderAroundGoalprotected static final intFields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVORFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, bodyArmorDropChance, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, field_52220, goalSelector, handDropChances, jumpControl, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, fallFlyingTicks, field_30063, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideAttackDamage, riptideStack, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields 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_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMYFields inherited from interface net.minecraft.entity.Leashable
field_52314, field_52315, LEASH_NBT_KEYFields inherited from interface net.minecraft.entity.mob.Monster
NORMAL_MONSTER_XP, SMALL_MONSTER_XP, STRONG_MONSTER_XP, STRONGER_MONSTER_XP, WITHER_XP, ZERO_XPFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic booleancanSpawn(EntityType<? extends GuardianEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) booleanprotected EntityNavigationcreateNavigation(World world) booleandamage(DamageSource source, float amount) Applies a damage to this entity.protected SoundEventfloatgetBeamProgress(float tickDelta) floatprotected SoundEventprotected SoundEventprotected SoundEventgetHurtSound(DamageSource source) intReturns the maximum degrees which the pitch can change when looking.intprotected Entity.MoveEffectReturns the possible effect(s) of an entity moving.floatgetPathfindingFavor(BlockPos pos, WorldView world) floatgetSpikesExtension(float tickDelta) floatgetTailAngle(float tickDelta) intbooleanprotected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.protected voidvoidonTrackedDataSet(TrackedData<?> data) Called on the client when the tracked data is set.(package private) voidsetBeamTarget(int entityId) (package private) voidsetSpikesRetracted(boolean retracted) voidvoidAllows you to do certain speed and velocity calculations.Methods inherited from class net.minecraft.entity.mob.HostileEntity
canSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getFallSounds, getProjectileType, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isDisallowedInPeaceful, isSpawnDark, shouldDropLoot, shouldDropXp, updateDespawnCounterMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash, shouldTickLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canBeLeashed, canEquip, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canTarget, canUseRangedWeapon, canUseSlot, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, detachLeash, detachLeash, dropAllEquipment, dropEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTable, getLootTableId, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, getXpToDrop, handleStatus, hasPositionTarget, initEquipment, initialize, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isHorseArmor, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, mobTick, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, readCustomDataFromNbt, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControls, writeCustomDataToNbtMethods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageEquipment, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEquippedItems, getFallFlyingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getWeaponStack, getXpToDrop, getYaw, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isTarget, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, triggerItemPickedUpByEntityCriteria, tryEatFood, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, 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, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, 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, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, 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, isWet, lerpPosAndRotation, limitFallDistance, move, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickPortalCooldown, tickPortalTeleportation, toNbtList, toNbtList, toString, tryCheckBlockCollision, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbtMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
WARMUP_TIME
protected static final int WARMUP_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named WARMUP_TIMELnet/minecraft/entity/mob/GuardianEntity;WARMUP_TIME:Iintermediary field_30470Lnet/minecraft/class_1577;field_30470:Iofficial cLcjz;c:I
-
SPIKES_RETRACTED
- Mappings:
Namespace Name Mixin selector named SPIKES_RETRACTEDLnet/minecraft/entity/mob/GuardianEntity;SPIKES_RETRACTED:Lnet/minecraft/entity/data/TrackedData;intermediary field_7280Lnet/minecraft/class_1577;field_7280:Lnet/minecraft/class_2940;official bLcjz;b:Lajw;
-
BEAM_TARGET_ID
- Mappings:
Namespace Name Mixin selector named BEAM_TARGET_IDLnet/minecraft/entity/mob/GuardianEntity;BEAM_TARGET_ID:Lnet/minecraft/entity/data/TrackedData;intermediary field_7290Lnet/minecraft/class_1577;field_7290:Lnet/minecraft/class_2940;official eLcjz;e:Lajw;
-
tailAngle
private float tailAngle- Mappings:
Namespace Name Mixin selector named tailAngleLnet/minecraft/entity/mob/GuardianEntity;tailAngle:Fintermediary field_7286Lnet/minecraft/class_1577;field_7286:Fofficial ccLcjz;cc:F
-
prevTailAngle
private float prevTailAngle- Mappings:
Namespace Name Mixin selector named prevTailAngleLnet/minecraft/entity/mob/GuardianEntity;prevTailAngle:Fintermediary field_7284Lnet/minecraft/class_1577;field_7284:Fofficial cdLcjz;cd:F
-
spikesExtensionRate
private float spikesExtensionRate- Mappings:
Namespace Name Mixin selector named spikesExtensionRateLnet/minecraft/entity/mob/GuardianEntity;spikesExtensionRate:Fintermediary field_7281Lnet/minecraft/class_1577;field_7281:Fofficial ceLcjz;ce:F
-
spikesExtension
private float spikesExtension- Mappings:
Namespace Name Mixin selector named spikesExtensionLnet/minecraft/entity/mob/GuardianEntity;spikesExtension:Fintermediary field_7285Lnet/minecraft/class_1577;field_7285:Fofficial cfLcjz;cf:F
-
prevSpikesExtension
private float prevSpikesExtension- Mappings:
Namespace Name Mixin selector named prevSpikesExtensionLnet/minecraft/entity/mob/GuardianEntity;prevSpikesExtension:Fintermediary field_7287Lnet/minecraft/class_1577;field_7287:Fofficial cgLcjz;cg:F
-
cachedBeamTarget
- Mappings:
Namespace Name Mixin selector named cachedBeamTargetLnet/minecraft/entity/mob/GuardianEntity;cachedBeamTarget:Lnet/minecraft/entity/LivingEntity;intermediary field_7288Lnet/minecraft/class_1577;field_7288:Lnet/minecraft/class_1309;official chLcjz;ch:Lbtn;
-
beamTicks
private int beamTicks- Mappings:
Namespace Name Mixin selector named beamTicksLnet/minecraft/entity/mob/GuardianEntity;beamTicks:Iintermediary field_7282Lnet/minecraft/class_1577;field_7282:Iofficial ciLcjz;ci:I
-
flopping
private boolean flopping- Mappings:
Namespace Name Mixin selector named floppingLnet/minecraft/entity/mob/GuardianEntity;flopping:Zintermediary field_7283Lnet/minecraft/class_1577;field_7283:Zofficial cjLcjz;cj:Z
-
wanderGoal
- Mappings:
Namespace Name Mixin selector named wanderGoalLnet/minecraft/entity/mob/GuardianEntity;wanderGoal:Lnet/minecraft/entity/ai/goal/WanderAroundGoal;intermediary field_7289Lnet/minecraft/class_1577;field_7289:Lnet/minecraft/class_1379;official dLcjz;d:Lcbj;
-
-
Constructor Details
-
GuardianEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lbsr;<init>(Lbsx;Ldcw;)V
-
-
Method Details
-
initGoals
protected void initGoals() -
createGuardianAttributes
- Mappings:
Namespace Name Mixin selector named createGuardianAttributesLnet/minecraft/entity/mob/GuardianEntity;createGuardianAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_26915Lnet/minecraft/class_1577;method_26915()Lnet/minecraft/class_5132$class_5133;official gkLcjz;gk()Lbuv$a;
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin 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 initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLbsr;a(Laka$a;)V
-
areSpikesRetracted
public boolean areSpikesRetracted()- Mappings:
Namespace Name Mixin selector named areSpikesRetractedLnet/minecraft/entity/mob/GuardianEntity;areSpikesRetracted()Zintermediary method_7058Lnet/minecraft/class_1577;method_7058()Zofficial glLcjz;gl()Z
-
setSpikesRetracted
void setSpikesRetracted(boolean retracted) - Mappings:
Namespace Name Mixin selector named setSpikesRetractedLnet/minecraft/entity/mob/GuardianEntity;setSpikesRetracted(Z)Vintermediary method_7054Lnet/minecraft/class_1577;method_7054(Z)Vofficial xLcjz;x(Z)V
-
getWarmupTime
public int getWarmupTime()- Mappings:
Namespace Name Mixin selector named getWarmupTimeLnet/minecraft/entity/mob/GuardianEntity;getWarmupTime()Iintermediary method_7055Lnet/minecraft/class_1577;method_7055()Iofficial tLcjz;t()I
-
setBeamTarget
void setBeamTarget(int entityId) - Mappings:
Namespace Name Mixin selector named setBeamTargetLnet/minecraft/entity/mob/GuardianEntity;setBeamTarget(I)Vintermediary method_7060Lnet/minecraft/class_1577;method_7060(I)Vofficial bLcjz;b(I)V
-
hasBeamTarget
public boolean hasBeamTarget()- Mappings:
Namespace Name Mixin selector named hasBeamTargetLnet/minecraft/entity/mob/GuardianEntity;hasBeamTarget()Zintermediary method_7063Lnet/minecraft/class_1577;method_7063()Zofficial gmLcjz;gm()Z
-
getBeamTarget
- Mappings:
Namespace Name Mixin selector named getBeamTargetLnet/minecraft/entity/mob/GuardianEntity;getBeamTarget()Lnet/minecraft/entity/LivingEntity;intermediary method_7052Lnet/minecraft/class_1577;method_7052()Lnet/minecraft/class_1309;official gnLcjz;gn()Lbtn;
-
onTrackedDataSet
Called on the client when the tracked data is set.This can be overridden to refresh other fields when the tracked data is set or changed.
- Specified by:
onTrackedDataSetin interfaceDataTracked- Overrides:
onTrackedDataSetin classLivingEntity- Mappings:
Namespace Name Mixin selector named onTrackedDataSetLnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)Vintermediary method_5674Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)Vofficial aLajz;a(Lajw;)V
-
getMinAmbientSoundDelay
public int getMinAmbientSoundDelay()- Overrides:
getMinAmbientSoundDelayin classMobEntity- Mappings:
Namespace Name Mixin selector named getMinAmbientSoundDelayLnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()Iintermediary method_5970Lnet/minecraft/class_1308;method_5970()Iofficial RLbtp;R()I
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;official vLbtp;v()Lavo;
-
getHurtSound
- Overrides:
getHurtSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;intermediary method_6011Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;official dLbtn;d(Lbrk;)Lavo;
-
getDeathSound
- Overrides:
getDeathSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;official n_Lbtn;n_()Lavo;
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin classEntity- Implementation Note:
- If an entity does not emit game events or play move sounds, this method should be overridden as returning a value other than ALL allows skipping some movement logic and boost ticking performance.
- Mappings:
Namespace Name Mixin selector named getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;official bcLbsr;bc()Lbsr$b;
-
getPathfindingFavor
- Overrides:
getPathfindingFavorin classHostileEntity- Mappings:
Namespace Name Mixin selector named getPathfindingFavorLnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)Fintermediary method_6144Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)Fofficial aLbtw;a(Ljd;Ldcz;)F
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classHostileEntity- Mappings:
Namespace Name Mixin selector named tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()Vintermediary method_6007Lnet/minecraft/class_1309;method_6007()Vofficial m_Lbtn;m_()V
-
getFlopSound
- Mappings:
Namespace Name Mixin selector named getFlopSoundLnet/minecraft/entity/mob/GuardianEntity;getFlopSound()Lnet/minecraft/sound/SoundEvent;intermediary method_7062Lnet/minecraft/class_1577;method_7062()Lnet/minecraft/class_3414;official xLcjz;x()Lavo;
-
getTailAngle
public float getTailAngle(float tickDelta) - Mappings:
Namespace Name Mixin selector named getTailAngleLnet/minecraft/entity/mob/GuardianEntity;getTailAngle(F)Fintermediary method_7057Lnet/minecraft/class_1577;method_7057(F)Fofficial HLcjz;H(F)F
-
getSpikesExtension
public float getSpikesExtension(float tickDelta) - Mappings:
Namespace Name Mixin selector named getSpikesExtensionLnet/minecraft/entity/mob/GuardianEntity;getSpikesExtension(F)Fintermediary method_7053Lnet/minecraft/class_1577;method_7053(F)Fofficial ILcjz;I(F)F
-
getBeamProgress
public float getBeamProgress(float tickDelta) - Mappings:
Namespace Name Mixin selector named getBeamProgressLnet/minecraft/entity/mob/GuardianEntity;getBeamProgress(F)Fintermediary method_7061Lnet/minecraft/class_1577;method_7061(F)Fofficial JLcjz;J(F)F
-
getBeamTicks
public float getBeamTicks()- Mappings:
Namespace Name Mixin selector named getBeamTicksLnet/minecraft/entity/mob/GuardianEntity;getBeamTicks()Fintermediary method_48161Lnet/minecraft/class_1577;method_48161()Fofficial goLcjz;go()F
-
canSpawn
-
canSpawn
public static boolean canSpawn(EntityType<? extends GuardianEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named canSpawnLnet/minecraft/entity/mob/GuardianEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Zintermediary method_20676Lnet/minecraft/class_1577;method_20676(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Zofficial bLcjz;b(Lbsx;Ldcx;Lbtr;Ljd;Layw;)Z
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntityalso have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
LivingEntity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource)and return early.- Overrides:
damagein classLivingEntity- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_5643Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Zofficial aLbsr;a(Lbrk;F)Z
-
getMaxLookPitchChange
public int getMaxLookPitchChange()Returns the maximum degrees which the pitch can change when looking.This is used by the look control.
It can return from
1for entities that can hardly raise their head, like axolotls or dolphins, or180for entities that can freely raise and lower their head, like guardians. The default return value is40.- Overrides:
getMaxLookPitchChangein classMobEntity- Returns:
- the maximum degrees which the pitch can change when looking
- Mappings:
Namespace Name Mixin selector named getMaxLookPitchChangeLnet/minecraft/entity/mob/MobEntity;getMaxLookPitchChange()Iintermediary method_5978Lnet/minecraft/class_1308;method_5978()Iofficial acLbtp;ac()I
-
travel
Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.See vanilla examples of custom horse vehicle and flying entities.
- Overrides:
travelin classLivingEntity- Parameters:
movementInput- represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order- Mappings:
Namespace Name Mixin selector named travelLnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_6091Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)Vofficial aLbtn;a(Lexc;)V
-