Class McSidedStatePart

All Implemented Interfaces:
FacePart, IconHitEffectsPart, ModelRenderPart, MultiPart, NormalOcclusionPart, SlottedPart
Direct Known Subclasses:
ButtonPart, LeverPart, TorchPart

public abstract class McSidedStatePart extends McStatePart implements FacePart
  • Constructor Details

    • McSidedStatePart

      public McSidedStatePart()
    • McSidedStatePart

      public McSidedStatePart(net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • getSide

      public abstract net.minecraft.core.Direction getSide()
    • onNeighborBlockChanged

      public void onNeighborBlockChanged(net.minecraft.core.BlockPos from)
      Description copied from interface: MultiPart
      Called when a neighbor block changes.
      Specified by:
      onNeighborBlockChanged in interface MultiPart
      Parameters:
      from - The neighbor block.
    • canStay

      public boolean canStay()
    • dropIfCantStay

      public boolean dropIfCantStay()
    • drop

      public void drop()
    • getSlotMask

      public int getSlotMask()
      Description copied from interface: SlottedPart
      a bitmask of slots that this part fills. slot x is 1invalid input: '<'invalid input: '<'x
      Specified by:
      getSlotMask in interface SlottedPart
    • redstoneConductionMap

      public int redstoneConductionMap()
      Description copied from interface: FacePart
      Return the redstone conduction map for which signal can pass through this part on the face. Eg, hollow covers return 0x10 as signal can pass through the center hole.
      Specified by:
      redstoneConductionMap in interface FacePart