Class CornerMicroblockPart

All Implemented Interfaces:
IMicroOcclusion, IMicroShrinkRender, MultiPart, PartialOcclusionPart, SlottedPart

public class CornerMicroblockPart extends StandardMicroblockPart
Created by covers1624 on 21/10/22.
  • Field Details

    • aBounds

      public static final codechicken.lib.vec.Cuboid6[] aBounds
    • aShapes

      public static final net.minecraft.world.phys.shapes.VoxelShape[] aShapes
  • Constructor Details

    • CornerMicroblockPart

      public CornerMicroblockPart(MicroMaterial material)
  • Method Details

    • setShape

      public void setShape(int size, int slot)
      Description copied from class: MicroblockPart
      General purpose microblock description value. These values are only used by subclass overrides in this class, so they can be whatever you would like.
      Overrides:
      setShape in class MicroblockPart
      Parameters:
      size - A 28 bit value representing the current size
      slot - A 4 bit value representing the current slot
    • getShape

      public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.phys.shapes.CollisionContext context)
      Description copied from interface: MultiPart
      Maps to BlockBehaviour.getShape(BlockState, BlockGetter, BlockPos, CollisionContext).

      The returned shape here will be used in keys of maps and such. Please ensure that it is cached within the part, to avoid memory churn.

    • getBounds

      public codechicken.lib.vec.Cuboid6 getBounds()
      Specified by:
      getBounds in interface IMicroOcclusion
      Specified by:
      getBounds in interface IMicroShrinkRender
      Specified by:
      getBounds in class MicroblockPart
    • getMicroFactory

      public StandardMicroFactory getMicroFactory()
      Specified by:
      getMicroFactory in class StandardMicroblockPart
    • getSlot

      public int getSlot()
      Specified by:
      getSlot in interface IMicroOcclusion
      Specified by:
      getSlot in interface IMicroShrinkRender
      Overrides:
      getSlot in class StandardMicroblockPart