Class HorseMillContraptionEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
com.simibubi.create.content.contraptions.AbstractContraptionEntity
com.simibubi.create.content.contraptions.ControlledContraptionEntity
com.petrolpark.compat.create.common.kinetics.horseMill.HorseMillContraptionEntity
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

public class HorseMillContraptionEntity extends com.simibubi.create.content.contraptions.ControlledContraptionEntity
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.simibubi.create.content.contraptions.AbstractContraptionEntity

    com.simibubi.create.content.contraptions.AbstractContraptionEntity.ContraptionRotationState

    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
    static final net.minecraft.network.syncher.EntityDataAccessor<Float>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Float>
     

    Fields inherited from class com.simibubi.create.content.contraptions.ControlledContraptionEntity

    angle, angleDelta, controllerPos, prevAngle, rotationAxis

    Fields inherited from class com.simibubi.create.content.contraptions.AbstractContraptionEntity

    collidingEntities, contraption, initialized, prevPosInvalid, staleTicks

    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, 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
    HorseMillContraptionEntity(net.minecraft.world.entity.EntityType<?> type, net.minecraft.world.level.Level world)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addHarnessedPassenger(net.minecraft.world.entity.Entity passenger, int harnessIndex)
     
    void
     
    protected boolean
    canAddPassenger(@NotNull net.minecraft.world.entity.Entity passenger)
     
    create(net.minecraft.world.level.Level world, com.simibubi.create.content.contraptions.IControlContraption controller, HorseMillContraption contraption)
     
    protected void
    defineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder)
     
     
    net.minecraft.world.phys.Vec3
    getPassengerPosition(net.minecraft.world.entity.Entity passenger, float partialTicks)
     
    static final void
    onEntityTickPost(net.neoforged.neoforge.event.tick.EntityTickEvent.Post event)
     
    void
    positionRider(net.minecraft.world.entity.Entity passenger, net.minecraft.world.entity.Entity.MoveFunction callback)
     
    protected void
    readAdditional(net.minecraft.nbt.CompoundTag compound, boolean spawnPacket)
     
    protected void
    removePassenger(net.minecraft.world.entity.Entity passenger)
     
    protected void
    setContraption(com.simibubi.create.content.contraptions.Contraption contraption)
     
    boolean
     
    void
     
    protected void
    writeAdditional(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
     

    Methods inherited from class com.simibubi.create.content.contraptions.ControlledContraptionEntity

    applyLocalTransforms, applyRotation, create, getAngle, getContactPointMotion, getController, getRotationAxis, getRotationState, getStalledAngle, handleStallInformation, lerpTo, makeStructureTransform, onContraptionStalled, reverseRotation, setAngle, setPos, setRotationAxis, shouldActorTrigger, teleportTo, tickContraption

    Methods inherited from class com.simibubi.create.content.contraptions.AbstractContraptionEntity

    addAdditionalSaveData, addSittingPassenger, alignPassenger, build, canCollideWith, canInteractWithBlock, canInteractWithBlock, collisionEnabled, contraptionInitialize, control, disassemble, doWaterSplashEffect, fireImmune, getAnchorVec, getContraptionName, getControllingPlayer, getDismountLocationForPassenger, getPistonPushReaction, getPrevAnchorVec, getPrevPositionVec, getYawOffset, handleBlockChange, handlePlayerInteraction, hasExactlyOnePlayerPassenger, hurt, igniteForTicks, isActorActive, isAliveOrStale, isIgnoringBlockTriggers, isPickable, isPrevPosInvalid, isReadyForRender, isStalled, kill, move, move, onBelowWorld, onRemovedFromLevel, pitchFromVector, readAdditionalSaveData, readSpawnData, refreshPSIs, registerColliding, remove, saveWithoutId, setBlock, setContraptionMotion, setControllingPlayer, setDeltaMovement, startControlling, stopControlling, supportsTerrainCollision, tickActors, toGlobalVector, toGlobalVector, toLocalVector, toLocalVector, updateInWaterStateAndDoFluidPushing, writeSpawnData, yawFromVector

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

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

    getFeedbackDisplayName
  • Field Details

    • GENERATED_SPEED

      public static final net.minecraft.network.syncher.EntityDataAccessor<Float> GENERATED_SPEED
    • GENERATED_STRESS_CAPACITY

      public static final net.minecraft.network.syncher.EntityDataAccessor<Float> GENERATED_STRESS_CAPACITY
  • Constructor Details

    • HorseMillContraptionEntity

      public HorseMillContraptionEntity(net.minecraft.world.entity.EntityType<?> type, net.minecraft.world.level.Level world)
  • Method Details

    • create

      public static final HorseMillContraptionEntity create(net.minecraft.world.level.Level world, com.simibubi.create.content.contraptions.IControlContraption controller, HorseMillContraption contraption)
    • defineSynchedData

      protected void defineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder)
      Overrides:
      defineSynchedData in class com.simibubi.create.content.contraptions.AbstractContraptionEntity
    • calculateGeneratedSpeedAndStress

      public void calculateGeneratedSpeedAndStress()
    • addHarnessedPassenger

      public void addHarnessedPassenger(net.minecraft.world.entity.Entity passenger, int harnessIndex)
    • shouldRiderSit

      public boolean shouldRiderSit()
    • tick

      public void tick()
      Overrides:
      tick in class com.simibubi.create.content.contraptions.AbstractContraptionEntity
    • removePassenger

      protected void removePassenger(net.minecraft.world.entity.Entity passenger)
      Overrides:
      removePassenger in class com.simibubi.create.content.contraptions.AbstractContraptionEntity
    • positionRider

      public void positionRider(net.minecraft.world.entity.Entity passenger, net.minecraft.world.entity.Entity.MoveFunction callback)
      Overrides:
      positionRider in class com.simibubi.create.content.contraptions.AbstractContraptionEntity
    • getPassengerPosition

      public net.minecraft.world.phys.Vec3 getPassengerPosition(net.minecraft.world.entity.Entity passenger, float partialTicks)
      Overrides:
      getPassengerPosition in class com.simibubi.create.content.contraptions.AbstractContraptionEntity
    • canAddPassenger

      protected boolean canAddPassenger(@NotNull @NotNull net.minecraft.world.entity.Entity passenger)
      Overrides:
      canAddPassenger in class com.simibubi.create.content.contraptions.AbstractContraptionEntity
    • getContraption

      public HorseMillContraption getContraption()
      Overrides:
      getContraption in class com.simibubi.create.content.contraptions.AbstractContraptionEntity
    • setContraption

      protected void setContraption(com.simibubi.create.content.contraptions.Contraption contraption)
      Overrides:
      setContraption in class com.simibubi.create.content.contraptions.ControlledContraptionEntity
    • readAdditional

      protected void readAdditional(net.minecraft.nbt.CompoundTag compound, boolean spawnPacket)
      Overrides:
      readAdditional in class com.simibubi.create.content.contraptions.ControlledContraptionEntity
    • writeAdditional

      protected void writeAdditional(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
      Overrides:
      writeAdditional in class com.simibubi.create.content.contraptions.ControlledContraptionEntity
    • onEntityTickPost

      public static final void onEntityTickPost(net.neoforged.neoforge.event.tick.EntityTickEvent.Post event)