Class HorseMillContraption

java.lang.Object
com.simibubi.create.content.contraptions.Contraption
com.simibubi.create.content.contraptions.bearing.BearingContraption
com.petrolpark.compat.create.common.kinetics.horseMill.HorseMillContraption

public class HorseMillContraption extends com.simibubi.create.content.contraptions.bearing.BearingContraption
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @Nullable Boolean
     
    protected List<net.minecraft.core.BlockPos>
     
    protected Map<UUID,Integer>
     

    Fields inherited from class com.simibubi.create.content.contraptions.bearing.BearingContraption

    facing, sailBlocks

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

    actors, anchor, blocks, bounds, capturedMultiblocks, collisionLevel, disabledActors, disassembled, entity, hasUniversalCreativeCrate, interactors, isLegacy, seatMapping, seats, simplifiedEntityColliders, stabilizedSubContraptions, stalled, storage, superglue, updateTags
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    HorseMillContraption(net.minecraft.core.Direction facing)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPassengersToWorld(net.minecraft.world.level.Level world, com.simibubi.create.content.contraptions.StructureTransform transform, List<net.minecraft.world.entity.Entity> seatedEntities)
     
    boolean
    assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
     
    List<net.minecraft.core.BlockPos>
     
     
    net.minecraft.core.BlockPos
    getHarnessOf(UUID entityId)
     
    com.simibubi.create.api.contraption.ContraptionType
     
    static final com.simibubi.create.content.contraptions.AssemblyException
     
    protected Map<net.minecraft.core.BlockPos,net.minecraft.world.entity.Entity>
     
    protected boolean
    moveBlock(net.minecraft.world.level.Level world, @Nullable net.minecraft.core.Direction forcedDirection, Queue<net.minecraft.core.BlockPos> frontier, Set<net.minecraft.core.BlockPos> visited)
     
    protected void
    moveHarness(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
     
    static final com.simibubi.create.content.contraptions.AssemblyException
     
    void
    onEntityInitialize(net.minecraft.world.level.Level world, com.simibubi.create.content.contraptions.AbstractContraptionEntity contraptionEntity)
     
    void
    readNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag tag, boolean spawnData)
     
    void
    setHarnessMapping(Map<UUID,Integer> harnessMapping)
     
    net.minecraft.nbt.CompoundTag
    writeNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
     

    Methods inherited from class com.simibubi.create.content.contraptions.bearing.BearingContraption

    addBlock, canBeStabilized, getFacing, getSailBlocks, isAnchoringBlockAt

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

    addBlocksToWorld, addToInitialFrontier, capture, captureMultiblock, containsBlockBreakers, createClientContraption, customBlockPlacement, customBlockRemoval, disableActorOnStart, expandBoundsAroundAxis, forEachActor, fromNBT, getActorAt, getActors, getBearingPosOf, getBlockEntityClientSide, getBlockEntityNBT, getBlocks, getContraptionWorld, getDisabledActors, getInteractors, getIsLegacy, getOrCreateClientContraptionLazy, getRadius, getSeatMapping, getSeatOf, getSeats, getSimplifiedEntityColliders, getStorage, invalidateClientContraptionChildren, invalidateClientContraptionStructure, invalidateColliders, isActorTypeDisabled, isHiddenInPortal, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, removeBlocksFromWorld, resetClientContraption, searchMovedStructure, setActorsActive, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos, translateMultiblockControllers, writeStorage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • clockwise

      @Nullable protected @Nullable Boolean clockwise
    • harnesses

      protected List<net.minecraft.core.BlockPos> harnesses
    • harnessMapping

      protected Map<UUID,Integer> harnessMapping
  • Constructor Details

    • HorseMillContraption

      public HorseMillContraption()
    • HorseMillContraption

      public HorseMillContraption(net.minecraft.core.Direction facing)
  • Method Details

    • assemble

      public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws com.simibubi.create.content.contraptions.AssemblyException
      Overrides:
      assemble in class com.simibubi.create.content.contraptions.bearing.BearingContraption
      Throws:
      com.simibubi.create.content.contraptions.AssemblyException
    • onEntityInitialize

      public void onEntityInitialize(net.minecraft.world.level.Level world, com.simibubi.create.content.contraptions.AbstractContraptionEntity contraptionEntity)
      Overrides:
      onEntityInitialize in class com.simibubi.create.content.contraptions.Contraption
    • moveBlock

      protected boolean moveBlock(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.core.Direction forcedDirection, Queue<net.minecraft.core.BlockPos> frontier, Set<net.minecraft.core.BlockPos> visited) throws com.simibubi.create.content.contraptions.AssemblyException
      Overrides:
      moveBlock in class com.simibubi.create.content.contraptions.Contraption
      Throws:
      com.simibubi.create.content.contraptions.AssemblyException
    • moveHarness

      protected void moveHarness(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
    • readNBT

      public void readNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag tag, boolean spawnData)
      Overrides:
      readNBT in class com.simibubi.create.content.contraptions.bearing.BearingContraption
    • writeNBT

      public net.minecraft.nbt.CompoundTag writeNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
      Overrides:
      writeNBT in class com.simibubi.create.content.contraptions.bearing.BearingContraption
    • addPassengersToWorld

      public void addPassengersToWorld(net.minecraft.world.level.Level world, com.simibubi.create.content.contraptions.StructureTransform transform, List<net.minecraft.world.entity.Entity> seatedEntities)
      Overrides:
      addPassengersToWorld in class com.simibubi.create.content.contraptions.Contraption
    • getHarnessMapping

      public Map<UUID,Integer> getHarnessMapping()
    • getHarnessOf

      public net.minecraft.core.BlockPos getHarnessOf(UUID entityId)
    • setHarnessMapping

      public void setHarnessMapping(Map<UUID,Integer> harnessMapping)
    • getHarnesses

      public List<net.minecraft.core.BlockPos> getHarnesses()
    • initialPassengers

      protected Map<net.minecraft.core.BlockPos,net.minecraft.world.entity.Entity> initialPassengers()
    • getType

      public com.simibubi.create.api.contraption.ContraptionType getType()
      Overrides:
      getType in class com.simibubi.create.content.contraptions.bearing.BearingContraption
    • harnessesFacingWrongWay

      public static final com.simibubi.create.content.contraptions.AssemblyException harnessesFacingWrongWay()
    • noAnimals

      public static final com.simibubi.create.content.contraptions.AssemblyException noAnimals()