Class ArmInteractionPoint
java.lang.Object
com.simibubi.create.content.logistics.block.mechanicalArm.ArmInteractionPoint
- Direct Known Subclasses:
AllArmInteractionPointTypes.ComposterPoint,AllArmInteractionPointTypes.CrafterPoint,AllArmInteractionPointTypes.DeployerPoint,AllArmInteractionPointTypes.DepositOnlyArmInteractionPoint,AllArmInteractionPointTypes.DepotPoint,AllArmInteractionPointTypes.TopFaceArmInteractionPoint
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArmAngleTargetprotected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler>protected net.minecraft.world.level.block.state.BlockStateprotected net.minecraft.world.level.Levelprotected ArmInteractionPoint.Modeprotected final net.minecraft.core.BlockPosprotected final ArmInteractionPointType -
Constructor Summary
ConstructorsConstructorDescriptionArmInteractionPoint(ArmInteractionPointType type, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionstatic ArmInteractionPointcreate(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) voidprotected voiddeserialize(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.BlockPos anchor) static ArmInteractionPointdeserialize(net.minecraft.nbt.CompoundTag nbt, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos anchor) net.minecraft.world.item.ItemStackextract(int slot, boolean simulate) net.minecraft.world.item.ItemStackextract(int slot, int amount, boolean simulate) protected net.minecraftforge.items.IItemHandlerprotected net.minecraft.core.Directionprotected net.minecraft.world.phys.Vec3net.minecraft.world.level.LevelgetLevel()getMode()net.minecraft.core.BlockPosgetPos()intgetTargetAngles(net.minecraft.core.BlockPos armPos, boolean ceiling) getType()net.minecraft.world.item.ItemStackinsert(net.minecraft.world.item.ItemStack stack, boolean simulate) static booleanisInteractable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) booleanisValid()voidfinal net.minecraft.nbt.CompoundTagserialize(net.minecraft.core.BlockPos anchor) protected voidserialize(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.BlockPos anchor) voidsetLevel(net.minecraft.world.level.Level level) static voidtransformPos(net.minecraft.nbt.CompoundTag nbt, StructureTransform transform) void
-
Field Details
-
type
-
level
protected net.minecraft.world.level.Level level -
pos
protected final net.minecraft.core.BlockPos pos -
mode
-
cachedState
protected net.minecraft.world.level.block.state.BlockState cachedState -
cachedHandler
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> cachedHandler -
cachedAngles
-
-
Constructor Details
-
ArmInteractionPoint
public ArmInteractionPoint(ArmInteractionPointType type, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getType
-
getLevel
public net.minecraft.world.level.Level getLevel() -
setLevel
public void setLevel(net.minecraft.world.level.Level level) -
getPos
public net.minecraft.core.BlockPos getPos() -
getMode
-
cycleMode
public void cycleMode() -
getInteractionPositionVector
protected net.minecraft.world.phys.Vec3 getInteractionPositionVector() -
getInteractionDirection
protected net.minecraft.core.Direction getInteractionDirection() -
getTargetAngles
-
updateCachedState
public void updateCachedState() -
isValid
public boolean isValid() -
keepAlive
public void keepAlive() -
getHandler
@Nullable protected net.minecraftforge.items.IItemHandler getHandler() -
insert
public net.minecraft.world.item.ItemStack insert(net.minecraft.world.item.ItemStack stack, boolean simulate) -
extract
public net.minecraft.world.item.ItemStack extract(int slot, int amount, boolean simulate) -
extract
public net.minecraft.world.item.ItemStack extract(int slot, boolean simulate) -
getSlotCount
public int getSlotCount() -
serialize
protected void serialize(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.BlockPos anchor) -
deserialize
protected void deserialize(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.BlockPos anchor) -
serialize
public final net.minecraft.nbt.CompoundTag serialize(net.minecraft.core.BlockPos anchor) -
deserialize
@Nullable public static ArmInteractionPoint deserialize(net.minecraft.nbt.CompoundTag nbt, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos anchor) -
transformPos
-
isInteractable
public static boolean isInteractable(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
create
@Nullable public static ArmInteractionPoint create(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-