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
FieldsModifier and TypeFieldDescriptionprotected @Nullable Booleanprotected List<net.minecraft.core.BlockPos> Fields inherited from class com.simibubi.create.content.contraptions.bearing.BearingContraption
facing, sailBlocksFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPassengersToWorld(net.minecraft.world.level.Level world, com.simibubi.create.content.contraptions.StructureTransform transform, List<net.minecraft.world.entity.Entity> seatedEntities) booleanassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) List<net.minecraft.core.BlockPos> net.minecraft.core.BlockPosgetHarnessOf(UUID entityId) com.simibubi.create.api.contraption.ContraptionTypegetType()static final com.simibubi.create.content.contraptions.AssemblyExceptionprotected Map<net.minecraft.core.BlockPos, net.minecraft.world.entity.Entity> protected booleanmoveBlock(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 voidmoveHarness(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) static final com.simibubi.create.content.contraptions.AssemblyExceptionvoidonEntityInitialize(net.minecraft.world.level.Level world, com.simibubi.create.content.contraptions.AbstractContraptionEntity contraptionEntity) voidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag tag, boolean spawnData) voidsetHarnessMapping(Map<UUID, Integer> harnessMapping) net.minecraft.nbt.CompoundTagwriteNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) Methods inherited from class com.simibubi.create.content.contraptions.bearing.BearingContraption
addBlock, canBeStabilized, getFacing, getSailBlocks, isAnchoringBlockAtMethods 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
-
Field Details
-
clockwise
-
harnesses
-
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:
assemblein classcom.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:
onEntityInitializein classcom.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:
moveBlockin classcom.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:
readNBTin classcom.simibubi.create.content.contraptions.bearing.BearingContraption
-
writeNBT
public net.minecraft.nbt.CompoundTag writeNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) - Overrides:
writeNBTin classcom.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:
addPassengersToWorldin classcom.simibubi.create.content.contraptions.Contraption
-
getHarnessMapping
-
getHarnessOf
-
setHarnessMapping
-
getHarnesses
-
initialPassengers
-
getType
public com.simibubi.create.api.contraption.ContraptionType getType()- Overrides:
getTypein classcom.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()
-