Class FaceMicroblockPart

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

public class FaceMicroblockPart extends StandardMicroblockPart implements FacePart
Created by covers1624 on 20/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

    • FaceMicroblockPart

      public FaceMicroblockPart(MicroMaterial material)
  • Method Details

    • 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
    • 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.

      Specified by:
      getShape in interface MultiPart
    • getRenderCuboids

      public com.google.common.collect.ImmutableSet<MaskedCuboid> getRenderCuboids(boolean isInventory)
      Description copied from class: MicroblockPart
      Get all the boxes this part wishes to render as.

      It is HIGHLY recommended that implementors cache these returned sets.

      Overrides:
      getRenderCuboids in class StandardMicroblockPart
      Parameters:
      isInventory - If the intent is to be rendered in inventory.
      Returns:
      The boxes to render as.
    • getMicroFactory

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