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 Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested 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.RemovalReason

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Map<net.minecraft.world.entity.Entity,org.apache.commons.lang3.mutable.MutableInt>
     
    protected Contraption
     
    protected boolean
     
    protected boolean
     
    int
     

    Fields 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, zOld

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL

    Fields inherited from interface net.minecraft.world.scores.ScoreHolder

    WILDCARD, WILDCARD_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractContraptionEntity(net.minecraft.world.entity.EntityType<?> entityTypeIn, net.minecraft.world.level.Level worldIn)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final void
    addAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
     
    void
    addSittingPassenger(net.minecraft.world.entity.Entity passenger, int seatIndex)
     
    void
    alignPassenger(net.minecraft.world.entity.Entity passenger)
     
    abstract void
    applyLocalTransforms(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks)
     
    abstract net.minecraft.world.phys.Vec3
    applyRotation(net.minecraft.world.phys.Vec3 localPos, float partialTicks)
     
    static net.minecraft.world.entity.EntityType.Builder<?>
    build(net.minecraft.world.entity.EntityType.Builder<?> builder)
     
    protected boolean
    canAddPassenger(@NotNull net.minecraft.world.entity.Entity pPassenger)
     
    boolean
    canCollideWith(net.minecraft.world.entity.Entity e)
     
    boolean
     
    protected void
     
    boolean
    control(net.minecraft.core.BlockPos controlsLocalPos, Collection<Integer> heldControls, net.minecraft.world.entity.player.Player player)
     
    protected void
    defineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder)
     
    void
     
    protected void
     
    boolean
     
    net.minecraft.world.phys.Vec3
     
    net.minecraft.world.phys.Vec3
    getContactPointMotion(net.minecraft.world.phys.Vec3 globalContactPoint)
     
     
    net.minecraft.network.chat.Component
     
     
    net.minecraft.world.phys.Vec3
    getDismountLocationForPassenger(net.minecraft.world.entity.LivingEntity entityLiving)
     
    net.minecraft.world.phys.Vec3
    getPassengerPosition(net.minecraft.world.entity.Entity passenger, float partialTicks)
     
    net.minecraft.world.level.material.PushReaction
     
    net.minecraft.world.phys.Vec3
     
    net.minecraft.world.phys.Vec3
     
     
    protected abstract float
     
    float
     
    protected void
    handleBlockChange(net.minecraft.core.BlockPos localPos, net.minecraft.world.level.block.state.BlockState newState)
     
    boolean
    handlePlayerInteraction(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos localPos, net.minecraft.core.Direction side, net.minecraft.world.InteractionHand interactionHand)
     
    protected abstract void
    handleStallInformation(double x, double y, double z, float angle)
     
    boolean
     
    boolean
    hurt(net.minecraft.world.damagesource.DamageSource source, float amount)
     
    void
    igniteForTicks(int ticks)
     
    protected boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
     
    protected abstract StructureTransform
     
    void
    move(double x, double y, double z)
     
    void
    move(net.minecraft.world.entity.MoverType pType, net.minecraft.world.phys.Vec3 pPos)
     
    protected void
     
    protected void
     
    void
     
    static float
    pitchFromVector(net.minecraft.world.phys.Vec3 vec)
     
    void
    positionRider(net.minecraft.world.entity.Entity passenger, net.minecraft.world.entity.Entity.MoveFunction callback)
     
    protected void
    readAdditional(net.minecraft.nbt.CompoundTag compound, boolean spawnData)
     
    protected final void
    readAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
     
    void
    readSpawnData(net.minecraft.network.RegistryFriendlyByteBuf registryFriendlyByteBuf)
     
    void
     
    void
    registerColliding(net.minecraft.world.entity.Entity collidingEntity)
     
    void
    remove(net.minecraft.world.entity.Entity.RemovalReason p_146834_)
     
    protected void
    removePassenger(net.minecraft.world.entity.Entity passenger)
     
    abstract net.minecraft.world.phys.Vec3
    reverseRotation(net.minecraft.world.phys.Vec3 localPos, float partialTicks)
     
    net.minecraft.nbt.CompoundTag
    saveWithoutId(net.minecraft.nbt.CompoundTag nbt)
     
    void
    setBlock(net.minecraft.core.BlockPos localPos, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo newInfo)
     
    protected void
     
    void
    setContraptionMotion(net.minecraft.world.phys.Vec3 vec)
     
    void
    setControllingPlayer(@Nullable UUID playerId)
     
    void
    setDeltaMovement(net.minecraft.world.phys.Vec3 motionIn)
     
    void
    setPos(double x, double y, double z)
     
    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)
     
    boolean
    startControlling(net.minecraft.core.BlockPos controlsLocalPos, net.minecraft.world.entity.player.Player player)
     
    void
    stopControlling(net.minecraft.core.BlockPos controlsLocalPos)
     
    boolean
     
    void
     
    void
     
    protected abstract void
     
    net.minecraft.world.phys.Vec3
    toGlobalVector(net.minecraft.world.phys.Vec3 localVec, float partialTicks)
     
    net.minecraft.world.phys.Vec3
    toGlobalVector(net.minecraft.world.phys.Vec3 localVec, float partialTicks, boolean prevAnchor)
     
    net.minecraft.world.phys.Vec3
    toLocalVector(net.minecraft.world.phys.Vec3 localVec, float partialTicks)
     
    net.minecraft.world.phys.Vec3
    toLocalVector(net.minecraft.world.phys.Vec3 globalVec, float partialTicks, boolean prevAnchor)
     
    protected boolean
     
    protected void
    writeAdditional(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
     
    void
    writeSpawnData(net.minecraft.network.RegistryFriendlyByteBuf registryFriendlyByteBuf)
     
    static float
    yawFromVector(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, waterSwimSound

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.commands.CommandSource

    alwaysAccepts

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData

    Methods 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, shouldRiderSit

    Methods 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

      protected Contraption 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

      protected void setContraption(Contraption contraption)
    • move

      public void move(net.minecraft.world.entity.MoverType pType, net.minecraft.world.phys.Vec3 pPos)
      Overrides:
      move in class net.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:
      removePassenger in class net.minecraft.world.entity.Entity
    • getDismountLocationForPassenger

      public net.minecraft.world.phys.Vec3 getDismountLocationForPassenger(net.minecraft.world.entity.LivingEntity entityLiving)
      Overrides:
      getDismountLocationForPassenger in class net.minecraft.world.entity.Entity
    • positionRider

      public void positionRider(net.minecraft.world.entity.Entity passenger, net.minecraft.world.entity.Entity.MoveFunction callback)
      Overrides:
      positionRider in class net.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:
      canAddPassenger in class net.minecraft.world.entity.Entity
    • getContraptionName

      public net.minecraft.network.chat.Component getContraptionName()
    • getControllingPlayer

      public Optional<UUID> getControllingPlayer()
    • setControllingPlayer

      public void setControllingPlayer(@Nullable @Nullable UUID playerId)
    • 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)
    • 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:
      tick in class net.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

      protected boolean isActorActive(MovementContext context, MovementBehaviour actor)
    • 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:
      setPos in class net.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:
      defineSynchedData in class net.minecraft.world.entity.Entity
    • writeSpawnData

      public void writeSpawnData(net.minecraft.network.RegistryFriendlyByteBuf registryFriendlyByteBuf)
      Specified by:
      writeSpawnData in interface net.neoforged.neoforge.entity.IEntityWithComplexSpawn
    • addAdditionalSaveData

      protected final void addAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
      Specified by:
      addAdditionalSaveData in class net.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:
      readSpawnData in interface net.neoforged.neoforge.entity.IEntityWithComplexSpawn
    • readAdditionalSaveData

      protected final void readAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
      Specified by:
      readAdditionalSaveData in class net.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:
      remove in class net.minecraft.world.entity.Entity
    • makeStructureTransform

      protected abstract StructureTransform makeStructureTransform()
    • kill

      public void kill()
      Overrides:
      kill in class net.minecraft.world.entity.Entity
    • onBelowWorld

      protected void onBelowWorld()
      Overrides:
      onBelowWorld in class net.minecraft.world.entity.Entity
    • onRemovedFromLevel

      public void onRemovedFromLevel()
      Specified by:
      onRemovedFromLevel in interface net.neoforged.neoforge.common.extensions.IEntityExtension
      Overrides:
      onRemovedFromLevel in class net.minecraft.world.entity.Entity
    • doWaterSplashEffect

      protected void doWaterSplashEffect()
      Overrides:
      doWaterSplashEffect in class net.minecraft.world.entity.Entity
    • getContraption

      public Contraption 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:
      saveWithoutId in class net.minecraft.world.entity.Entity
    • setDeltaMovement

      public void setDeltaMovement(net.minecraft.world.phys.Vec3 motionIn)
      Overrides:
      setDeltaMovement in class net.minecraft.world.entity.Entity
    • getPistonPushReaction

      public net.minecraft.world.level.material.PushReaction getPistonPushReaction()
      Overrides:
      getPistonPushReaction in class net.minecraft.world.entity.Entity
    • setContraptionMotion

      public void setContraptionMotion(net.minecraft.world.phys.Vec3 vec)
    • isPickable

      public boolean isPickable()
      Overrides:
      isPickable in class net.minecraft.world.entity.Entity
    • hurt

      public boolean hurt(net.minecraft.world.damagesource.DamageSource source, float amount)
      Overrides:
      hurt in class net.minecraft.world.entity.Entity
    • getPrevPositionVec

      public net.minecraft.world.phys.Vec3 getPrevPositionVec()
    • getRotationState

      public abstract AbstractContraptionEntity.ContraptionRotationState 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:
      canCollideWith in class net.minecraft.world.entity.Entity
    • hasExactlyOnePlayerPassenger

      public boolean hasExactlyOnePlayerPassenger()
      Overrides:
      hasExactlyOnePlayerPassenger in class net.minecraft.world.entity.Entity
    • applyLocalTransforms

      public abstract void applyLocalTransforms(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks)
    • updateInWaterStateAndDoFluidPushing

      protected boolean updateInWaterStateAndDoFluidPushing()
      Overrides:
      updateInWaterStateAndDoFluidPushing in class net.minecraft.world.entity.Entity
    • igniteForTicks

      public void igniteForTicks(int ticks)
      Overrides:
      igniteForTicks in class net.minecraft.world.entity.Entity
    • fireImmune

      public boolean fireImmune()
      Overrides:
      fireImmune in class net.minecraft.world.entity.Entity
    • isIgnoringBlockTriggers

      public boolean isIgnoringBlockTriggers()
      Overrides:
      isIgnoringBlockTriggers in class net.minecraft.world.entity.Entity
    • isReadyForRender

      public boolean isReadyForRender()
    • isAliveOrStale

      public boolean isAliveOrStale()
    • isPrevPosInvalid

      public boolean isPrevPosInvalid()