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

public class ArmInteractionPoint extends Object
  • Field Details

    • type

      protected final ArmInteractionPointType type
    • level

      protected net.minecraft.world.level.Level level
    • pos

      protected final net.minecraft.core.BlockPos pos
    • mode

      protected ArmInteractionPoint.Mode mode
    • cachedState

      protected net.minecraft.world.level.block.state.BlockState cachedState
    • cachedHandler

      protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> cachedHandler
    • cachedAngles

      protected ArmAngleTarget 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

      public ArmInteractionPointType 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

      public ArmInteractionPoint.Mode getMode()
    • cycleMode

      public void cycleMode()
    • getInteractionPositionVector

      protected net.minecraft.world.phys.Vec3 getInteractionPositionVector()
    • getInteractionDirection

      protected net.minecraft.core.Direction getInteractionDirection()
    • getTargetAngles

      public ArmAngleTarget getTargetAngles(net.minecraft.core.BlockPos armPos, boolean ceiling)
    • 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

      public static void transformPos(net.minecraft.nbt.CompoundTag nbt, StructureTransform transform)
    • 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)