Class ArmInteractionPoint
java.lang.Object
com.simibubi.create.content.logistics.block.mechanicalArm.ArmInteractionPoint
- Direct Known Subclasses:
ArmInteractionPoint.Basin,ArmInteractionPoint.BlazeBurner,ArmInteractionPoint.Crafter,ArmInteractionPoint.Deployer,ArmInteractionPoint.Depot,ArmInteractionPoint.Funnel,ArmInteractionPoint.Millstone,ArmInteractionPoint.TopFaceArmInteractionPoint
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic enumstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArmAngleTargetprotected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler>protected ArmInteractionPoint.Modeprotected static final HashMap<ArmInteractionPoint,Supplier<ArmInteractionPoint>> protected net.minecraft.core.BlockPosprotected net.minecraft.world.level.block.state.BlockState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPoint(ArmInteractionPoint instance, Supplier<ArmInteractionPoint> factory) protected static ArmInteractionPointcreateAt(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos) protected voidprotected static ArmInteractionPointdeserialize(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos anchor, net.minecraft.nbt.CompoundTag nbt) protected net.minecraft.world.item.ItemStackextract(net.minecraft.world.level.Level world, int slot, boolean simulate) protected net.minecraft.world.item.ItemStackextract(net.minecraft.world.level.Level world, int slot, int amount, boolean simulate) protected com.jozufozu.flywheel.core.PartialModelprotected net.minecraftforge.items.IItemHandlergetHandler(net.minecraft.world.level.Level world) protected net.minecraft.core.Directionprotected net.minecraft.world.phys.Vec3protected intgetSlotCount(net.minecraft.world.level.Level world) protected ArmAngleTargetgetTargetAngles(net.minecraft.core.BlockPos armPos, boolean ceiling) protected net.minecraft.world.item.ItemStackinsert(net.minecraft.world.level.Level world, net.minecraft.world.item.ItemStack stack, boolean simulate) protected static booleanisInteractable(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protected booleanisStillValid(net.minecraft.world.level.BlockGetter reader) protected abstract booleanisValid(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protected voidkeepAlive(net.minecraft.world.level.LevelAccessor world) protected net.minecraft.nbt.CompoundTagserialize(net.minecraft.core.BlockPos anchor) protected voidtransformFlag(com.mojang.blaze3d.vertex.PoseStack stack) protected static voidtransformPos(StructureTransform transform, net.minecraft.nbt.CompoundTag nbt)
-
Field Details
-
pos
protected net.minecraft.core.BlockPos pos -
state
protected net.minecraft.world.level.block.state.BlockState state -
mode
-
cachedHandler
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> cachedHandler -
cachedAngles
-
POINTS
-
-
Constructor Details
-
ArmInteractionPoint
public ArmInteractionPoint()
-
-
Method Details
-
addPoint
-
transformFlag
protected void transformFlag(com.mojang.blaze3d.vertex.PoseStack stack) -
getFlagType
protected com.jozufozu.flywheel.core.PartialModel getFlagType() -
cycleMode
protected void cycleMode() -
getInteractionPositionVector
protected net.minecraft.world.phys.Vec3 getInteractionPositionVector() -
getInteractionDirection
protected net.minecraft.core.Direction getInteractionDirection() -
isStillValid
protected boolean isStillValid(net.minecraft.world.level.BlockGetter reader) -
keepAlive
protected void keepAlive(net.minecraft.world.level.LevelAccessor world) -
isValid
protected abstract boolean isValid(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
isInteractable
protected static boolean isInteractable(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
getTargetAngles
-
getHandler
@Nullable protected net.minecraftforge.items.IItemHandler getHandler(net.minecraft.world.level.Level world) -
insert
protected net.minecraft.world.item.ItemStack insert(net.minecraft.world.level.Level world, net.minecraft.world.item.ItemStack stack, boolean simulate) -
extract
protected net.minecraft.world.item.ItemStack extract(net.minecraft.world.level.Level world, int slot, int amount, boolean simulate) -
extract
protected net.minecraft.world.item.ItemStack extract(net.minecraft.world.level.Level world, int slot, boolean simulate) -
getSlotCount
protected int getSlotCount(net.minecraft.world.level.Level world) -
createAt
@Nullable protected static ArmInteractionPoint createAt(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos) -
serialize
protected net.minecraft.nbt.CompoundTag serialize(net.minecraft.core.BlockPos anchor) -
deserialize
protected static ArmInteractionPoint deserialize(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos anchor, net.minecraft.nbt.CompoundTag nbt) -
transformPos
-