Class AbstractContraptionEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
com.simibubi.create.content.contraptions.AbstractContraptionEntity
- All Implemented Interfaces:
net.minecraft.commands.CommandSource,net.minecraft.network.syncher.SyncedDataHolder,net.minecraft.world.level.entity.EntityAccess,net.minecraft.world.Nameable,net.minecraft.world.scores.ScoreHolder,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IEntityExtension,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>,net.neoforged.neoforge.entity.IEntityWithComplexSpawn
- Direct Known Subclasses:
ControlledContraptionEntity,GantryContraptionEntity,OrientedContraptionEntity
public abstract class AbstractContraptionEntity
extends net.minecraft.world.entity.Entity
implements net.neoforged.neoforge.entity.IEntityWithComplexSpawn
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.entity.Entity
net.minecraft.world.entity.Entity.MoveFunction, net.minecraft.world.entity.Entity.MovementEmission, net.minecraft.world.entity.Entity.RemovalReasonNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Map<net.minecraft.world.entity.Entity, org.apache.commons.lang3.mutable.MutableInt> protected Contraptionprotected booleanprotected booleanintFields inherited from class net.minecraft.world.entity.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, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalProcess, random, removalReason, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.commands.CommandSource
NULLFields inherited from interface net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionAbstractContraptionEntity(net.minecraft.world.entity.EntityType<?> entityTypeIn, net.minecraft.world.level.Level worldIn) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddAdditionalSaveData(net.minecraft.nbt.CompoundTag compound) voidaddSittingPassenger(net.minecraft.world.entity.Entity passenger, int seatIndex) voidalignPassenger(net.minecraft.world.entity.Entity passenger) abstract voidapplyLocalTransforms(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks) abstract net.minecraft.world.phys.Vec3applyRotation(net.minecraft.world.phys.Vec3 localPos, float partialTicks) static net.minecraft.world.entity.EntityType.Builder<?> build(net.minecraft.world.entity.EntityType.Builder<?> builder) protected booleancanAddPassenger(@NotNull net.minecraft.world.entity.Entity pPassenger) booleancanCollideWith(net.minecraft.world.entity.Entity e) booleancanInteractWithBlock(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos localPos, double distance) booleancanInteractWithBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 localPos, double distance) booleanprotected voidbooleancontrol(net.minecraft.core.BlockPos controlsLocalPos, Collection<Integer> heldControls, net.minecraft.world.entity.player.Player player) protected voiddefineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) voidprotected voidbooleannet.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3getContactPointMotion(net.minecraft.world.phys.Vec3 globalContactPoint) net.minecraft.network.chat.Componentnet.minecraft.world.phys.Vec3getDismountLocationForPassenger(net.minecraft.world.entity.LivingEntity entityLiving) net.minecraft.world.phys.Vec3getPassengerPosition(net.minecraft.world.entity.Entity passenger, float partialTicks) net.minecraft.world.level.material.PushReactionnet.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3protected abstract floatfloatprotected voidhandleBlockChange(net.minecraft.core.BlockPos localPos, net.minecraft.world.level.block.state.BlockState newState) booleanhandlePlayerInteraction(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos localPos, net.minecraft.core.Direction side, net.minecraft.world.InteractionHand interactionHand) protected abstract voidhandleStallInformation(double x, double y, double z, float angle) booleanbooleanhurt(net.minecraft.world.damagesource.DamageSource source, float amount) voidigniteForTicks(int ticks) protected booleanisActorActive(MovementContext context, MovementBehaviour actor) booleanbooleanbooleanbooleanbooleanbooleanvoidkill()protected abstract StructureTransformvoidmove(double x, double y, double z) voidmove(net.minecraft.world.entity.MoverType pType, net.minecraft.world.phys.Vec3 pPos) protected voidprotected voidvoidstatic floatpitchFromVector(net.minecraft.world.phys.Vec3 vec) voidpositionRider(net.minecraft.world.entity.Entity passenger, net.minecraft.world.entity.Entity.MoveFunction callback) protected voidreadAdditional(net.minecraft.nbt.CompoundTag compound, boolean spawnData) protected final voidreadAdditionalSaveData(net.minecraft.nbt.CompoundTag compound) voidreadSpawnData(net.minecraft.network.RegistryFriendlyByteBuf registryFriendlyByteBuf) voidvoidregisterColliding(net.minecraft.world.entity.Entity collidingEntity) voidremove(net.minecraft.world.entity.Entity.RemovalReason p_146834_) protected voidremovePassenger(net.minecraft.world.entity.Entity passenger) abstract net.minecraft.world.phys.Vec3reverseRotation(net.minecraft.world.phys.Vec3 localPos, float partialTicks) net.minecraft.nbt.CompoundTagsaveWithoutId(net.minecraft.nbt.CompoundTag nbt) voidsetBlock(net.minecraft.core.BlockPos localPos, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo newInfo) protected voidsetContraption(Contraption contraption) voidsetContraptionMotion(net.minecraft.world.phys.Vec3 vec) voidsetControllingPlayer(@Nullable UUID playerId) voidsetDeltaMovement(net.minecraft.world.phys.Vec3 motionIn) voidsetPos(double x, double y, double z) protected booleanshouldActorTrigger(MovementContext context, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo blockInfo, MovementBehaviour actor, net.minecraft.world.phys.Vec3 actorPosition, net.minecraft.core.BlockPos gridPosition) booleanstartControlling(net.minecraft.core.BlockPos controlsLocalPos, net.minecraft.world.entity.player.Player player) voidstopControlling(net.minecraft.core.BlockPos controlsLocalPos) booleanvoidtick()voidprotected abstract voidnet.minecraft.world.phys.Vec3toGlobalVector(net.minecraft.world.phys.Vec3 localVec, float partialTicks) net.minecraft.world.phys.Vec3toGlobalVector(net.minecraft.world.phys.Vec3 localVec, float partialTicks, boolean prevAnchor) net.minecraft.world.phys.Vec3toLocalVector(net.minecraft.world.phys.Vec3 localVec, float partialTicks) net.minecraft.world.phys.Vec3toLocalVector(net.minecraft.world.phys.Vec3 globalVec, float partialTicks, boolean prevAnchor) protected booleanprotected voidwriteAdditional(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) voidwriteSpawnData(net.minecraft.network.RegistryFriendlyByteBuf registryFriendlyByteBuf) static floatyawFromVector(net.minecraft.world.phys.Vec3 vec) Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, animateHurt, applyGravity, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canBeCollidedWith, canBeHitByProjectile, canChangeDimensions, canControlVehicle, canFreeze, canRide, canSpawnSprintParticle, canSprint, canTrample, canUsePortal, captureDrops, captureDrops, causeFallDamage, changeDimension, checkBelowWorld, checkDespawn, checkFallDamage, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForCulling, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultGravity, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDirection, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengerRidingPosition, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPickResult, getPortalCooldown, getPose, getPosition, getPositionCodec, getPreciseBodyRotation, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSlot, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getViewYRot, getVisualRotationYInDegrees, getWeaponItem, getX, getX, getXRot, getY, getY, getYHeadRot, getYRot, getZ, getZ, handleDamageEvent, handleEntityEvent, handlePortal, hasControllingPassenger, hasCustomName, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, igniteForSeconds, ignoreExplosion, interact, interactAt, is, isAddedToLevel, isAlive, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCurrentlyGlowing, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushable, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, killedEntity, lavaHurt, lerpHeadTo, lerpMotion, lerpPositionAndRotationStep, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, level, limitPistonMovement, load, lookAt, makeBoundingBox, makeStuckInBlock, markHurt, maxUpStep, maybeBackOffFromEdge, mayInteract, mirror, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToLevel, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onSyncedDataUpdated, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, push, push, reapplyPosition, recreateFromPacket, refreshDimensions, registryAccess, removeAfterChangingDimensions, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rideTick, rotate, save, saveAsPassenger, sendSystemMessage, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSprinting, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYBodyRot, setYHeadRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, syncData, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAcceptsMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, copyAttachmentsFrom, deserializeNBT, getClassification, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPickedResult, getSoundFromFluidType, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, sendPairingData, serializeNBT, shouldRiderSitMethods inherited from interface net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
Field Details
-
collidingEntities
public final Map<net.minecraft.world.entity.Entity,org.apache.commons.lang3.mutable.MutableInt> collidingEntities -
contraption
-
initialized
protected boolean initialized -
prevPosInvalid
protected boolean prevPosInvalid -
staleTicks
public int staleTicks
-
-
Constructor Details
-
AbstractContraptionEntity
public AbstractContraptionEntity(net.minecraft.world.entity.EntityType<?> entityTypeIn, net.minecraft.world.level.Level worldIn)
-
-
Method Details
-
setContraption
-
move
public void move(net.minecraft.world.entity.MoverType pType, net.minecraft.world.phys.Vec3 pPos) - Overrides:
movein classnet.minecraft.world.entity.Entity
-
supportsTerrainCollision
public boolean supportsTerrainCollision() -
contraptionInitialize
protected void contraptionInitialize() -
collisionEnabled
public boolean collisionEnabled() -
registerColliding
public void registerColliding(net.minecraft.world.entity.Entity collidingEntity) -
addSittingPassenger
public void addSittingPassenger(net.minecraft.world.entity.Entity passenger, int seatIndex) -
removePassenger
protected void removePassenger(net.minecraft.world.entity.Entity passenger) - Overrides:
removePassengerin classnet.minecraft.world.entity.Entity
-
getDismountLocationForPassenger
public net.minecraft.world.phys.Vec3 getDismountLocationForPassenger(net.minecraft.world.entity.LivingEntity entityLiving) - Overrides:
getDismountLocationForPassengerin classnet.minecraft.world.entity.Entity
-
positionRider
public void positionRider(net.minecraft.world.entity.Entity passenger, net.minecraft.world.entity.Entity.MoveFunction callback) - Overrides:
positionRiderin classnet.minecraft.world.entity.Entity
-
getPassengerPosition
public net.minecraft.world.phys.Vec3 getPassengerPosition(net.minecraft.world.entity.Entity passenger, float partialTicks) -
canAddPassenger
protected boolean canAddPassenger(@NotNull @NotNull net.minecraft.world.entity.Entity pPassenger) - Overrides:
canAddPassengerin classnet.minecraft.world.entity.Entity
-
getContraptionName
public net.minecraft.network.chat.Component getContraptionName() -
getControllingPlayer
-
setControllingPlayer
-
startControlling
public boolean startControlling(net.minecraft.core.BlockPos controlsLocalPos, net.minecraft.world.entity.player.Player player) -
control
public boolean control(net.minecraft.core.BlockPos controlsLocalPos, Collection<Integer> heldControls, net.minecraft.world.entity.player.Player player) -
stopControlling
public void stopControlling(net.minecraft.core.BlockPos controlsLocalPos) -
handlePlayerInteraction
public boolean handlePlayerInteraction(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos localPos, net.minecraft.core.Direction side, net.minecraft.world.InteractionHand interactionHand) -
canInteractWithBlock
public boolean canInteractWithBlock(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos localPos, double distance) -
canInteractWithBlock
public boolean canInteractWithBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 localPos, double distance) -
toGlobalVector
public net.minecraft.world.phys.Vec3 toGlobalVector(net.minecraft.world.phys.Vec3 localVec, float partialTicks) -
toGlobalVector
public net.minecraft.world.phys.Vec3 toGlobalVector(net.minecraft.world.phys.Vec3 localVec, float partialTicks, boolean prevAnchor) -
toLocalVector
public net.minecraft.world.phys.Vec3 toLocalVector(net.minecraft.world.phys.Vec3 localVec, float partialTicks) -
toLocalVector
public net.minecraft.world.phys.Vec3 toLocalVector(net.minecraft.world.phys.Vec3 globalVec, float partialTicks, boolean prevAnchor) -
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.Entity
-
alignPassenger
public void alignPassenger(net.minecraft.world.entity.Entity passenger) -
setBlock
public void setBlock(net.minecraft.core.BlockPos localPos, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo newInfo) -
tickContraption
protected abstract void tickContraption() -
applyRotation
public abstract net.minecraft.world.phys.Vec3 applyRotation(net.minecraft.world.phys.Vec3 localPos, float partialTicks) -
reverseRotation
public abstract net.minecraft.world.phys.Vec3 reverseRotation(net.minecraft.world.phys.Vec3 localPos, float partialTicks) -
tickActors
public void tickActors() -
refreshPSIs
public void refreshPSIs() -
isActorActive
-
onContraptionStalled
protected void onContraptionStalled() -
shouldActorTrigger
protected boolean shouldActorTrigger(MovementContext context, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo blockInfo, MovementBehaviour actor, net.minecraft.world.phys.Vec3 actorPosition, net.minecraft.core.BlockPos gridPosition) -
move
public void move(double x, double y, double z) -
getAnchorVec
public net.minecraft.world.phys.Vec3 getAnchorVec() -
getPrevAnchorVec
public net.minecraft.world.phys.Vec3 getPrevAnchorVec() -
getYawOffset
public float getYawOffset() -
setPos
public void setPos(double x, double y, double z) - Overrides:
setPosin classnet.minecraft.world.entity.Entity
-
yawFromVector
public static float yawFromVector(net.minecraft.world.phys.Vec3 vec) -
pitchFromVector
public static float pitchFromVector(net.minecraft.world.phys.Vec3 vec) -
build
public static net.minecraft.world.entity.EntityType.Builder<?> build(net.minecraft.world.entity.EntityType.Builder<?> builder) -
defineSynchedData
protected void defineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) - Specified by:
defineSynchedDatain classnet.minecraft.world.entity.Entity
-
writeSpawnData
public void writeSpawnData(net.minecraft.network.RegistryFriendlyByteBuf registryFriendlyByteBuf) - Specified by:
writeSpawnDatain interfacenet.neoforged.neoforge.entity.IEntityWithComplexSpawn
-
addAdditionalSaveData
protected final void addAdditionalSaveData(net.minecraft.nbt.CompoundTag compound) - Specified by:
addAdditionalSaveDatain classnet.minecraft.world.entity.Entity
-
writeAdditional
protected void writeAdditional(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) -
readSpawnData
public void readSpawnData(net.minecraft.network.RegistryFriendlyByteBuf registryFriendlyByteBuf) - Specified by:
readSpawnDatain interfacenet.neoforged.neoforge.entity.IEntityWithComplexSpawn
-
readAdditionalSaveData
protected final void readAdditionalSaveData(net.minecraft.nbt.CompoundTag compound) - Specified by:
readAdditionalSaveDatain classnet.minecraft.world.entity.Entity
-
readAdditional
protected void readAdditional(net.minecraft.nbt.CompoundTag compound, boolean spawnData) -
disassemble
public void disassemble() -
remove
public void remove(net.minecraft.world.entity.Entity.RemovalReason p_146834_) - Overrides:
removein classnet.minecraft.world.entity.Entity
-
makeStructureTransform
-
kill
public void kill()- Overrides:
killin classnet.minecraft.world.entity.Entity
-
onBelowWorld
protected void onBelowWorld()- Overrides:
onBelowWorldin classnet.minecraft.world.entity.Entity
-
onRemovedFromLevel
public void onRemovedFromLevel()- Specified by:
onRemovedFromLevelin interfacenet.neoforged.neoforge.common.extensions.IEntityExtension- Overrides:
onRemovedFromLevelin classnet.minecraft.world.entity.Entity
-
doWaterSplashEffect
protected void doWaterSplashEffect()- Overrides:
doWaterSplashEffectin classnet.minecraft.world.entity.Entity
-
getContraption
-
isStalled
public boolean isStalled() -
getStalledAngle
protected abstract float getStalledAngle() -
handleStallInformation
protected abstract void handleStallInformation(double x, double y, double z, float angle) -
handleBlockChange
protected void handleBlockChange(net.minecraft.core.BlockPos localPos, net.minecraft.world.level.block.state.BlockState newState) -
saveWithoutId
public net.minecraft.nbt.CompoundTag saveWithoutId(net.minecraft.nbt.CompoundTag nbt) - Overrides:
saveWithoutIdin classnet.minecraft.world.entity.Entity
-
setDeltaMovement
public void setDeltaMovement(net.minecraft.world.phys.Vec3 motionIn) - Overrides:
setDeltaMovementin classnet.minecraft.world.entity.Entity
-
getPistonPushReaction
public net.minecraft.world.level.material.PushReaction getPistonPushReaction()- Overrides:
getPistonPushReactionin classnet.minecraft.world.entity.Entity
-
setContraptionMotion
public void setContraptionMotion(net.minecraft.world.phys.Vec3 vec) -
isPickable
public boolean isPickable()- Overrides:
isPickablein classnet.minecraft.world.entity.Entity
-
hurt
public boolean hurt(net.minecraft.world.damagesource.DamageSource source, float amount) - Overrides:
hurtin classnet.minecraft.world.entity.Entity
-
getPrevPositionVec
public net.minecraft.world.phys.Vec3 getPrevPositionVec() -
getRotationState
-
getContactPointMotion
public net.minecraft.world.phys.Vec3 getContactPointMotion(net.minecraft.world.phys.Vec3 globalContactPoint) -
canCollideWith
public boolean canCollideWith(net.minecraft.world.entity.Entity e) - Overrides:
canCollideWithin classnet.minecraft.world.entity.Entity
-
hasExactlyOnePlayerPassenger
public boolean hasExactlyOnePlayerPassenger()- Overrides:
hasExactlyOnePlayerPassengerin classnet.minecraft.world.entity.Entity
-
applyLocalTransforms
public abstract void applyLocalTransforms(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks) -
updateInWaterStateAndDoFluidPushing
protected boolean updateInWaterStateAndDoFluidPushing()- Overrides:
updateInWaterStateAndDoFluidPushingin classnet.minecraft.world.entity.Entity
-
igniteForTicks
public void igniteForTicks(int ticks) - Overrides:
igniteForTicksin classnet.minecraft.world.entity.Entity
-
fireImmune
public boolean fireImmune()- Overrides:
fireImmunein classnet.minecraft.world.entity.Entity
-
isIgnoringBlockTriggers
public boolean isIgnoringBlockTriggers()- Overrides:
isIgnoringBlockTriggersin classnet.minecraft.world.entity.Entity
-
isReadyForRender
public boolean isReadyForRender() -
isAliveOrStale
public boolean isAliveOrStale() -
isPrevPosInvalid
public boolean isPrevPosInvalid()
-