Class SulfurCube
- All Implemented Interfaces:
DataComponentGetter, TypedInstance<EntityType<?>>, SyncedDataHolder, DebugValueSource, Attackable, Bucketable, EquipmentUser, ItemOwner, Leashable, Shearable, SlotProvider, Targeting, EntityAccess, UniquelyIdentifyable, Nameable, ScoreHolder, Waypoint, WaypointTransmitter, IAttachmentHolder, IEntityExtension, ILivingEntityExtension, TypedInstanceExtension<EntityType<?>>, IShearable, IWithData<EntityType<?>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprotected static classprivate classprivate static classNested classes/interfaces inherited from class AbstractCubeMob
AbstractCubeMob.CubeMobAttackGoal, AbstractCubeMob.CubeMobMoveControl<T>Nested classes/interfaces inherited from class AgeableMob
AgeableMob.AgeableMobGroupDataNested classes/interfaces inherited from class LivingEntity
LivingEntity.FallsoundsNested classes/interfaces inherited from class Entity
Entity.Flags, Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface DebugValueSource
DebugValueSource.Registration, DebugValueSource.ValueGetter<T>Nested classes/interfaces inherited from interface ItemOwner
ItemOwner.OffsetFromOwnerNested classes/interfaces inherited from interface Leashable
Leashable.LeashData, Leashable.WrenchNested classes/interfaces inherited from interface Waypoint
Waypoint.IconNested classes/interfaces inherited from interface WaypointTransmitter
WaypointTransmitter.BlockConnection, WaypointTransmitter.ChunkConnection, WaypointTransmitter.Connection, WaypointTransmitter.EntityAzimuthConnection, WaypointTransmitter.EntityBlockConnection, WaypointTransmitter.EntityChunkConnection -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Predicate<ItemEntity> private List<SulfurCubeArchetype.ContactDamage> private static final booleanprivate static final floatprivate booleanprivate static final EntityDataAccessor<Boolean> private intprivate static final floatprivate static final EntityDataAccessor<Integer> private static final doublestatic final intstatic final intstatic final intprivate intprivate static final floatstatic final doubleprivate intstatic final intprivate static final floatprivate static final floatprivate static final floatprivate static final floatFields inherited from class AbstractCubeMob
ID_SIZE, MAX_NATURAL_SIZE, oSquish, squish, targetSquishFields inherited from class AgeableMob
age, AGE_LOCK_COOLDOWN_TICKS, AGE_LOCK_DOWNWARDS_MOVING_PARTICLE_Y_OFFSET, ageLockParticleTimer, BABY_START_AGE, DEFAULT_AGE, DEFAULT_FORCED_AGE, forcedAge, forcedAgeTimerFields inherited from class PathfinderMob
DEFAULT_WALK_TARGET_VALUEFields inherited from class Mob
ambientSoundTime, goalSelector, jumpControl, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, PICKUP_REACH, preventConversionSpawns, RANDOM_SPAWN_BONUS_ID, TAG_CAN_PICK_UP_LOOT, TAG_DROP_CHANCES, TAG_LEFT_HANDED, TAG_NO_AI, TAG_PERSISTENCE_REQUIRED, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, WEARING_ARMOR_UPGRADE_MATERIAL_ATTEMPTS, WEARING_ARMOR_UPGRADE_MATERIAL_CHANCE, xpRewardFields inherited from class LivingEntity
ARMOR_SLOT_OFFSET, attackAnim, attackStrengthTicker, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_HORIZONTAL_AIR_DRAG, BASE_JUMP_POWER, BASE_SWIM_SPEED, BASE_VERTICAL_AIR_DRAG, BODY_ARMOR_OFFSET, brain, currentImpulseImpactPos, damageContainers, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, DEFAULT_KNOCKBACK, DOLPHINS_GRACE_WATER_DRAG, ELYTRA_HORIZONTAL_AIR_DRAG, ELYTRA_VERTICAL_AIR_DRAG, elytraAnimationState, equipment, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, FLYING_AIR_DRAG, FLYING_LAVA_DRAG, FLYING_VERTICAL_AIR_DRAG, FLYING_WATER_DRAG, HURT_DURATION_TICKS, hurtDuration, hurtTime, INPUT_FRICTION, interpolation, INVULNERABLE_DURATION, itemSwapTicker, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerMemoryTime, LAVA_DRAG, LAVA_SHALLOW_VERTICAL_DRAG, lerpHeadSteps, lerpYHeadRot, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, PLAYER_HURT_EXPERIENCE_TIME, PLAYER_NOT_WEARING_DISGUISE_ITEM, PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGET, recentKineticEnemies, removeArrowTime, removeStingerTime, SADDLE_OFFSET, SLEEPING_DIMENSIONS, SPRINTING_WATER_DRAG, SWIMMING_VERTICAL_SPEED, swinging, swingingArm, swingTime, TAG_ATTRIBUTES, TAG_BRAIN, TAG_DEATH_TIME, TAG_EQUIPMENT, TAG_FALL_FLYING, TAG_HEALTH, TAG_HURT_TIME, TAG_SLEEPING_POS, useItem, useItemRemaining, walkAnimation, WATER_DRAG, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DEFAULT_BELOW_NAME_DISTANCE, DEFAULT_NAME_TAG_DISTANCE, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, flyDist, FREEZE_HURT_FREQUENCY, horizontalCollision, hurtMarked, INVALID_ENTITY_ID, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, MAX_MOVEMENTS_HANDELED_PER_TICK, MAX_NAME_TAG_DISTANCE, minorHorizontalCollision, moveDist, needsSync, noPhysics, portalProcess, random, stringUUID, stuckSpeedMultiplier, syncPosition, TAG_AIR, TAG_CUSTOM_NAME, TAG_DATA, TAG_FALL_DISTANCE, TAG_FIRE, TAG_GLOWING, TAG_ID, TAG_INVULNERABLE, TAG_MOTION, TAG_NO_GRAVITY, TAG_ON_GROUND, TAG_PASSENGERS, TAG_PORTAL_COOLDOWN, TAG_POS, TAG_ROTATION, TAG_SILENT, TAG_UUID, tickCount, TOTAL_AIR_SUPPLY, uuid, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from class AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface Leashable
AXIS_SPECIFIC_ELASTICITY, ENTITY_ATTACHMENT_POINT, LEASH_ELASTIC_DIST, LEASH_TAG, LEASH_TOO_FAR_DIST, LEASHER_ATTACHMENT_POINT, MAXIMUM_ALLOWED_LEASHED_DIST, SHARED_QUAD_ATTACHMENT_POINTS, SPRING_DAMPENING, STIFFNESS, TORSIONAL_ELASTICITYFields inherited from interface ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface Waypoint
WAYPOINT_TRANSMIT_RANGE_HIDE_MODIFIERFields inherited from interface WaypointTransmitter
REALLY_FAR_DISTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAdditionalSaveData(ValueOutput output) protected voidprotected voidprotected voidprivate voidapplyContactDamage(Entity entity) private Vec2applyHorizontalHitAngleScale(float horizontalAngleScale, Vec2 originalAngle, Vec3 attackerPosition, Vec3 attackerAimDirection, Vec3 targetCenter) protected <T> booleanapplyImplicitComponent(DataComponentType<T> type, T value) protected voidapplyImplicitComponents(DataComponentGetter components) private Vec2applyVerticalHitAnglePowerTransfer(float verticalHitAngleScale, float horizontalPower, float verticalPower, Vec3 attackerPosition, Vec3 attackerAimDirection, Vec3 targetCenteredPosition, float targetHeight) private Vec2applyVerticalPositionAnglePowerRotation(float verticalPositionAngleScale, float horizontalPower, float verticalPower, float originalHorizontalPower, float originalVerticalPower, Vec3 attackerFeetPosition, Vec3 targetFeetPosition) booleanbooleanbooleancanBePickedUpWithBucket(ItemStack itemStack) booleanprotected booleanbooleanbooleanbooleancanHoldItem(ItemStack itemStack) booleanbooleancanUseSlot(EquipmentSlot slot) static booleancheckSulfurCubeSpawnRules(EntityType<SulfurCube> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) protected @Nullable Map<EquipmentSlot, ItemStack> collectEquipmentChanges(Map<EquipmentSlot, ItemStack> lastEquipmentItems) static AttributeSupplier.Builderprotected voidcustomServerAiStep(ServerLevel level) protected voiddefineSynchedData(SynchedEntityData.Builder entityData) protected voidbooleanboolean<T> @Nullable Tget(DataComponentType<? extends T> type) private SoundEventprotected intgetBreedOffspring(ServerLevel level, AgeableMob partner) protected SoundEventprivate SoundEventgetEquipmentSlotForItem(ItemStack itemStack) doubleintgetFuse()protected SoundEventgetHurtSound(DamageSource source) protected SoundEventfloatprotected @Nullable ParticleOptionsprotected intprotected SoundEventprivate static @Nullable SulfurCubeContentgetSulfurCubeContent(ItemStack itemStack) booleanbooleanhurtServer(ServerLevel level, DamageSource source, float damage) protected booleanbooleanisEquippableInSlot(ItemStack itemStack, EquipmentSlot slot) private booleanbooleanbooleanisPrimed()private static booleanisSwallowableItem(ItemStack itemStack) voidknockback(double power, double xd, double zd, DamageSource source, float damage, boolean comesFromEffect) voidmatchingArchetypes(ItemStack stack) floatprotected InteractionResultmobInteract(Player player, InteractionHand hand) protected booleanvoidonSyncedDataUpdated(EntityDataAccessor<?> accessor) protected voidpickUpItem(ServerLevel level, ItemEntity entity) protected voidprivate voidplayerPush(Player player) voidplayerTouch(Player player) protected voidplayStepSound(BlockPos pos, BlockState blockState) booleanprimeTime(boolean imminent) private voidprotected voidreadAdditionalSaveData(ValueInput input) booleanbooleanvoidsaveToBucketTag(ItemStack bucket) protected voidsetcubeMobHealth(int actualSize) voidsetFromBucket(boolean fromBucket) private voidsetFuse(int fuse) voidsetSize(int size, boolean updateHealth) protected voidsetSpawnSize(ServerLevelAccessor level, DifficultyInstance difficulty) private voidsetSulfurCubeContent(SulfurCubeContent sulfurCubeContent) protected voidsetUpSplitCube(AbstractCubeMob cubeMob, int halfSize, float xd, float zd) voidshear(ServerLevel level, SoundSource soundSource, ItemStack tool) voidtick()private voidtickFuse()protected voidtravelInFluid(Vec3 input) Methods inherited from class AbstractCubeMob
dealDamage, decreaseSquish, doPlayJumpSound, finalizeSpawn, getAttackDamage, getDefaultDimensions, getJumpDelay, getMaxHeadXRot, getPassengerAttachmentPoint, getSize, getSoundPitch, getSoundVolume, getType, isTiny, jumpFromGround, push, refreshDimensions, registerGoals, remove, spawnCustomParticlesMethods inherited from class AgeableMob
ageUp, ageUp, aiStep, canAgeUp, canBeABaby, canBreed, canUseGoldenDandelion, getAge, getBabyStartAge, getForcedAge, getForcedAgeTimer, getSpeedUpSecondsWhenFeeding, isAgeLocked, isBaby, makeAgeLockedParticle, setAge, setAgeLocked, setAgeLocked, setBabyMethods inherited from class PathfinderMob
checkSpawnRules, closeRangeLeashBehaviour, followLeashSpeed, getWalkTargetValue, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolder, whenLeashedToMethods inherited from class Mob
asValidTarget, ate, attemptToShearEquipment, baseTick, canAttack, canReplaceCurrentItem, canReplaceEqualItem, canShearEquipment, canUseNonMeleeWeapon, chargeSpeedModifier, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clampHeadRotationToBody, clearHome, convertTo, convertTo, createBodyControl, createEquipmentSlotContainer, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropPreservedEquipment, dropPreservedEquipment, enchantSpawnedArmor, enchantSpawnedWeapon, equip, equip, equipItemIfPossible, getAmbientSound, getAmbientSoundInterval, getAttackBoundingBox, getBodyArmorItem, getControllingPassenger, getDropChances, getEquipmentForSlot, getGoalSelector, getHeadRotSpeed, getHomePosition, getHomeRadius, getJumpControl, getLeashData, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getPreferredWeaponType, getSensing, getSpawnType, getTarget, getTargetFromBrain, getTargetUnchecked, handleEntityEvent, hasHome, interact, isAggressive, isEffectiveAi, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSaddled, isSpawnCancelled, isWearingBodyArmor, isWithinHome, isWithinHome, isWithinHome, isWithinMeleeAttackRange, jumpInFluid, jumpInLiquid, leashTooFarBehaviour, lookAt, onAttributeUpdated, onLeashRemoved, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerDebugValues, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, removeWhenFarAway, serverAiStep, setAggressive, setCanPickUpLoot, setDropChance, setGuaranteedDrop, setHomeTo, setItemSlotAndDropWhenKilled, setLeashData, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, setXxa, setYya, setZza, shearItem, shouldPassengersInheritMalus, spawnAnim, startRiding, stopInPlace, sunProtectionSlot, tickHeadTurn, updateControlFlags, usePlayerItem, wantsToPickUpMethods inherited from class LivingEntity
activeLocationDependentEnchantments, actuallyHurt, addEffect, addEffect, animateHurt, applyInput, applyItemBlocking, applyPostImpulseGraceTime, areAllEffectsAmbient, asLivingEntity, attackable, blockedByItem, blockUsingItem, calculateEntityAnimation, calculateFallDamage, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canEquipWithDispenser, canGlide, canGlideUsing, canStandOnFluid, canUsePortal, causeExtraKnockback, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createDamageSource, createEquipment, createLivingAttributes, createWitherRose, dealDefaultKnockback, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, drop, dropAllDeathLoot, dropEquipment, dropExperience, dropFromEntityInteractLootTable, dropFromGiftLootTable, dropFromLootTable, dropFromLootTable, dropFromLootTable, dropFromShearingLootTable, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getActiveItem, getAgeScale, getAirDrag, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttackRangeWith, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBrain, getCombatTracker, getComfortableFallDistance, getCurrentSwingDuration, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getDismountPoses, getEffect, getEffectBlendFactor, getEffectiveGravity, getEntityBounciness, getEquipSound, getExperienceReward, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getInterpolation, getItemBlockingWith, getItemBySlot, getItemHeldByArm, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtByPlayer, getLastHurtByPlayerMemoryTime, getLastHurtMob, getLastHurtMobTimestamp, getLiquidCollisionShape, getLocalBoundsForPose, getLuck, getMainHandItem, getMaxAbsorption, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getProjectile, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSecondsToDisableBlocking, getSleepingPos, getSlot, getSpeed, getStingerCount, getSwimAmount, getTicksSinceLastKineticHitFeedback, getTicksUsingItem, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleExtraItemsCreatedOnUse, handleKillingBlow, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, heal, hurtArmor, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDeadOrDying, isFallFlying, isHolding, isHolding, isIgnoringFallDamageFromCurrentImpulse, isImmobile, isInPostImpulseGraceTime, isInShallowFluid, isInvertedHealAndHarm, isInvulnerableTo, isInWall, isJumping, isLookingAtMe, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isTransmittingWaypoint, isUsingItem, isVisuallySwimming, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lookAt, makeBrain, makePoofParticles, makeSound, makeWaypointConnectionWith, onAttack, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectsRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, onRemoval, playAttackSound, playBlockFallSound, postPiercingAttack, pushEntities, randomTeleport, randomTeleport, recreateFromPacket, releaseUsingItem, rememberStabbedEntity, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, resetCurrentImpulseContext, resetForwardDirectionOfRelativePortalPosition, resolveMobResponsibleForDamage, resolvePlayerResponsibleForDamage, rideTick, sanitizeScale, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setIgnoreFallDamageFromCurrentImpulse, setItemInHand, setItemSlot, setItemSlot, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldShowName, shouldTakeDrowningDamage, shouldTravelInFluid, skipDropExperience, spawnItemParticles, stabAttack, stabbedEntities, startSleeping, startUsingItem, stopFallFlying, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, travel, travelFlying, travelFlying, travelInWater, triggerOnDeathMobEffects, tryAddFrost, tryResetCurrentImpulseContext, updateDataBeforeSync, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, wasExperienceConsumed, wasRecentlyStabbed, waypointIcon, wouldNotSuffocateAtTargetPoseMethods inherited from class Entity
absSnapRotationTo, absSnapTo, absSnapTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyComponentsFromItemStack, applyEffectsFromBlocks, applyEffectsFromBlocks, applyEffectsFromBlocksForLastMovements, applyGravity, applyImplicitComponentIfPresent, awardKillScore, belowNameDisplay, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canInteractWithLevel, canRide, canSimulateMovement, canSpawnSprintParticle, canSprint, canTeleport, canTrample, captureDrops, captureDrops, castComponentValue, checkBelowWorld, checkFallDistanceAccumulation, checkSupportingBlock, chunkPosition, clearFire, clearFreeze, clearMovementThisTick, closerThan, closerThan, collectAllColliders, collideBoundingBox, collideBoundingBox, collidedWithFluid, collidedWithShapeMovingFrom, computeSpeed, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, doWaterSplashEffect, dropAllLeashConnections, ejectPassengers, entityTags, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getAvailableSpaceBelow, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getControlledVehicle, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidInteractionBox, getForward, getGravity, getHandHoldingItemAngle, getHeadLookAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getKnownSpeed, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getQuadLeashHolderOffsets, getRandom, getRandomX, getRandomY, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRequiresPrecisePosition, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getXRot, getY, getY, getYRot, getYRot, getZ, getZ, handleOnAboveBubbleColumn, handleOnInsideBubbleColumn, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasMovedHorizontallyRecently, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, ignoreExplosion, is, isAddedToLevel, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isClientAuthoritative, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFlyingVehicle, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInClouds, isInLava, isInLiquid, isInShallowWater, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWater, isInWaterOrRain, isLocalClientAuthoritative, isLocalInstanceAuthoritative, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lavaIgnite, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, modifyPassengerFluidInteractionBox, move, moveOrInterpolateTo, moveOrInterpolateTo, moveOrInterpolateTo, moveOrInterpolateTo, moveRelative, moveTowardsClosestSpace, nextStep, notifyLeasheeRemoved, notifyLeashHolder, oldPosition, onAboveBubbleColumn, onAddedToLevel, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onPassengerTurned, onRemovedFromLevel, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, positionRider, problemPath, processFlappingMovement, processPortalCooldown, propagateFallToPassengers, push, push, reapplyPosition, registryAccess, removeLatestMovementRecording, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendBubbleColumnParticles, setAirSupply, setAsInsidePortal, setBoundingBox, setComponent, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRequiresPrecisePosition, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shearOffAllLeashConnections, shouldBeSaved, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, snapTo, snapTo, snapTo, snapTo, snapTo, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, supportQuadLeashAsHolder, syncData, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportSetPosition, teleportSpectators, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, typeHolder, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidInteraction, updateSwimming, waterSwimSoundMethods inherited from class AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachmentsMethods inherited from interface DataComponentGetter
get, getOrDefault, getOrDefault, getTyped, has, hasMethods inherited from interface EquipmentUser
equip, equip, equip, getItemBySlot, resolveSlot, setItemSlotMethods inherited from interface IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, getBlockBounciness, getClassification, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPersistentData, getSoundFromFluidType, isAddedToLevel, isMultipartEntity, isPushedByFluid, onAddedToLevel, onRemovedFromLevel, revive, sendPairingData, shouldRiderSitMethods inherited from interface ILivingEntityExtension
canDrownInFluidType, canSwimInFluidType, moveInFluid, onDamageTaken, self, sinkInFluidMethods inherited from interface IShearable
isShearable, onSheared, spawnShearedDropMethods inherited from interface Leashable
canHaveALeashAttachedTo, checkElasticInteractions, dropLeash, getLeashHolder, getLeashOffset, getQuadLeashOffsets, isLeashed, leashDistanceTo, leashElasticDistance, leashSnapDistance, mayBeLeashed, onElasticLeashPull, readLeashData, removeLeash, setDelayedLeashHolderId, setLeashedTo, supportQuadLeash, writeLeashDataMethods inherited from interface Nameable
getPlainTextNameMethods inherited from interface ScoreHolder
getFeedbackDisplayNameMethods inherited from interface SlotProvider
getSlotsFromRangeMethods inherited from interface TypedInstanceExtension
getData
-
Field Details
-
SPLIT_COUNT
public static final int SPLIT_COUNT- See Also:
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
MIN_SIZE
public static final int MIN_SIZE- See Also:
-
PICKUP_TIMER_DURATION
public static final int PICKUP_TIMER_DURATION- See Also:
-
PUSH_DISTANCE_THRESHOLD
public static final double PUSH_DISTANCE_THRESHOLD- See Also:
-
pickupTimer
private int pickupTimer -
pushSoundCooldown
private int pushSoundCooldown -
floatsInLiquids
private boolean floatsInLiquids -
MAX_PLAYER_PUSH_SPEED
private static final double MAX_PLAYER_PUSH_SPEED- See Also:
-
PLAYER_PUSH_SPEED_SCALE_MULTIPLIER
private static final float PLAYER_PUSH_SPEED_SCALE_MULTIPLIER- See Also:
-
VEHICLE_PUSH_SPEED_SCALE_MULTIPLIER
private static final float VEHICLE_PUSH_SPEED_SCALE_MULTIPLIER- See Also:
-
VERTICAL_PUSH_MULTIPLIER
private static final float VERTICAL_PUSH_MULTIPLIER- See Also:
-
explosionData
-
knockbackModifier
-
soundSettings
-
fuse
private int fuse -
contactDamages
-
MAX_FUSE
-
FROM_BUCKET
-
DEFAULT_FROM_BUCKET
private static final boolean DEFAULT_FROM_BUCKET- See Also:
-
HORIZONTAL_HIT_ANGLE_SCALE
private static final float HORIZONTAL_HIT_ANGLE_SCALE- See Also:
-
VERTICAL_HIT_ANGLE_SCALE
private static final float VERTICAL_HIT_ANGLE_SCALE- See Also:
-
VERTICAL_POSITION_ANGLE_SCALE
private static final float VERTICAL_POSITION_ANGLE_SCALE- See Also:
-
EXTRA_KNOCKBACK_DAMPENING
private static final float EXTRA_KNOCKBACK_DAMPENING- See Also:
-
ALLOWED_ITEMS
-
-
Constructor Details
-
SulfurCube
-
-
Method Details
-
defineSynchedData
- Overrides:
defineSynchedDatain classAbstractCubeMob
-
addBehaviourGoals
protected void addBehaviourGoals()- Specified by:
addBehaviourGoalsin classAbstractCubeMob
-
fromBucket
public boolean fromBucket()- Specified by:
fromBucketin interfaceBucketable
-
getFuse
public int getFuse() -
isPrimed
public boolean isPrimed() -
setFuse
private void setFuse(int fuse) -
onSyncedDataUpdated
- Specified by:
onSyncedDataUpdatedin interfaceSyncedDataHolder- Overrides:
onSyncedDataUpdatedin classAbstractCubeMob
-
setFromBucket
public void setFromBucket(boolean fromBucket) - Specified by:
setFromBucketin interfaceBucketable
-
getPickupSound
- Specified by:
getPickupSoundin interfaceBucketable
-
saveToBucketTag
- Specified by:
saveToBucketTagin interfaceBucketable
-
canBreatheUnderwater
public boolean canBreatheUnderwater()- Overrides:
canBreatheUnderwaterin classLivingEntity
-
travelInFluid
- Overrides:
travelInFluidin classLivingEntity
-
getFluidJumpThreshold
public double getFluidJumpThreshold()- Overrides:
getFluidJumpThresholdin classEntity
-
loadFromBucketTag
- Specified by:
loadFromBucketTagin interfaceBucketable
-
getBucketItemStack
- Specified by:
getBucketItemStackin interfaceBucketable
-
addTargetingGoals
protected void addTargetingGoals()- Specified by:
addTargetingGoalsin classAbstractCubeMob
-
getLightLevelDependentMagicValue
public float getLightLevelDependentMagicValue()- Overrides:
getLightLevelDependentMagicValuein classEntity
-
isDealsDamage
protected boolean isDealsDamage()- Overrides:
isDealsDamagein classAbstractCubeMob
-
checkSulfurCubeSpawnRules
public static boolean checkSulfurCubeSpawnRules(EntityType<SulfurCube> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
requiresCustomPersistence
public boolean requiresCustomPersistence()- Overrides:
requiresCustomPersistencein classMob
-
canBeLeashed
public boolean canBeLeashed()- Specified by:
canBeLeashedin interfaceLeashable- Overrides:
canBeLeashedin classMob
-
hurtServer
- Overrides:
hurtServerin classLivingEntity
-
hasBodyItem
public boolean hasBodyItem() -
canExplode
public boolean canExplode() -
matchingArchetypes
-
tick
public void tick()- Overrides:
tickin classAbstractCubeMob
-
tickFuse
private void tickFuse() -
primeWhenOnPoweredPosition
private void primeWhenOnPoweredPosition() -
primeTime
public boolean primeTime(boolean imminent) -
customServerAiStep
- Overrides:
customServerAiStepin classMob
-
collectEquipmentChanges
protected @Nullable Map<EquipmentSlot, ItemStack> collectEquipmentChanges(Map<EquipmentSlot, ItemStack> lastEquipmentItems) - Overrides:
collectEquipmentChangesin classLivingEntity
-
maxUpStep
public float maxUpStep()- Overrides:
maxUpStepin classLivingEntity
-
omnidirectionalAirMover
protected boolean omnidirectionalAirMover()- Overrides:
omnidirectionalAirMoverin classEntity
-
canFreeze
public boolean canFreeze()- Overrides:
canFreezein classLivingEntity
-
mobInteract
- Overrides:
mobInteractin classAgeableMob
-
equipItem
-
applyContactDamage
-
playEatingSound
protected void playEatingSound() -
canBePickedUpWithBucket
- Specified by:
canBePickedUpWithBucketin interfaceBucketable
-
getEquipmentSlotForItem
- Overrides:
getEquipmentSlotForItemin classLivingEntity
-
isEquippableInSlot
- Overrides:
isEquippableInSlotin classLivingEntity
-
getSoundSource
- Overrides:
getSoundSourcein classAbstractCubeMob
-
getHurtSound
- Specified by:
getHurtSoundin classAbstractCubeMob
-
getDeathSound
- Specified by:
getDeathSoundin classAbstractCubeMob
-
getSquishSound
- Specified by:
getSquishSoundin classAbstractCubeMob
-
getJumpSound
- Specified by:
getJumpSoundin classAbstractCubeMob
-
getAbsorbSound
-
getEjectSound
-
playStepSound
- Overrides:
playStepSoundin classEntity
-
getParticleType
- Specified by:
getParticleTypein classAbstractCubeMob
-
createSulfurCubeAttributes
-
shear
-
readyForShearing
public boolean readyForShearing()- Specified by:
readyForShearingin interfaceShearable
-
canPickUpLoot
public boolean canPickUpLoot()- Overrides:
canPickUpLootin classMob
-
isSwallowableItem
-
canUseSlot
- Overrides:
canUseSlotin classLivingEntity
-
canDispenserEquipIntoSlot
- Overrides:
canDispenserEquipIntoSlotin classMob
-
canHoldItem
- Overrides:
canHoldItemin classMob
-
pickUpItem
- Overrides:
pickUpItemin classMob
-
getBaseExperienceReward
- Overrides:
getBaseExperienceRewardin classMob
-
getSplitCount
protected int getSplitCount()- Overrides:
getSplitCountin classAbstractCubeMob
-
setSpawnSize
- Overrides:
setSpawnSizein classAbstractCubeMob
-
setSize
public void setSize(int size, boolean updateHealth) - Overrides:
setSizein classAbstractCubeMob
-
setUpSplitCube
- Overrides:
setUpSplitCubein classAbstractCubeMob
-
getBreedOffspring
- Overrides:
getBreedOffspringin classAbstractCubeMob
-
isFood
-
ageBoundaryReached
protected void ageBoundaryReached()- Overrides:
ageBoundaryReachedin classAgeableMob
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classAbstractCubeMob
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveDatain classAbstractCubeMob
-
doPush
- Overrides:
doPushin classLivingEntity
-
playerTouch
- Overrides:
playerTouchin classAbstractCubeMob
-
playerPush
-
applyHorizontalHitAngleScale
-
applyVerticalHitAnglePowerTransfer
-
applyVerticalPositionAnglePowerRotation
-
knockback
public void knockback(double power, double xd, double zd, DamageSource source, float damage, boolean comesFromEffect) - Overrides:
knockbackin classLivingEntity
-
get
- Specified by:
getin interfaceDataComponentGetter- Overrides:
getin classEntity
-
applyImplicitComponents
- Overrides:
applyImplicitComponentsin classEntity
-
applyImplicitComponent
- Overrides:
applyImplicitComponentin classEntity
-
getSulfurCubeContent
-
setSulfurCubeContent
-
getLeashOffset
- Specified by:
getLeashOffsetin interfaceLeashable
-
setcubeMobHealth
protected void setcubeMobHealth(int actualSize) - Overrides:
setcubeMobHealthin classAbstractCubeMob
-
isInvulnerableToPiercingWeapon
public boolean isInvulnerableToPiercingWeapon()- Overrides:
isInvulnerableToPiercingWeaponin classEntity
-
canBePickedFromInside
public boolean canBePickedFromInside()- Overrides:
canBePickedFromInsidein classEntity
-