Interface NormalOcclusionPart

All Superinterfaces:
MultiPart
All Known Implementing Classes:
ButtonPart, ButtonPart.AcaciaButtonPart, ButtonPart.BirchButtonPart, ButtonPart.CrimsonButtonPart, ButtonPart.DarkOakButtonPart, ButtonPart.JungleButtonPart, ButtonPart.OakButtonPart, ButtonPart.PolishedBlackstoneButtonPart, ButtonPart.SpruceButtonPart, ButtonPart.StoneButtonPart, ButtonPart.WarpedButtonPart, HollowMicroblockPart, LeverPart, McSidedStatePart, McStatePart, PostMicroblockPart, RedstoneTorchPart, SoulTorchPart, TorchPart

public interface NormalOcclusionPart extends MultiPart
Provides standard bounding box based occlusion testing. If any two parts have overlapping bounding boxes, the test fails
  • Method Details

    • getOcclusionShape

      net.minecraft.world.phys.shapes.VoxelShape getOcclusionShape()
    • occlusionTest

      default boolean occlusionTest(MultiPart nPart)
      Description copied from interface: MultiPart
      Perform an occlusion test to determine weather this part and npart can 'fit' into this block space.
      Specified by:
      occlusionTest in interface MultiPart
      Parameters:
      nPart - The part to run the test against.
      Returns:
      true if both this part and npart are able to share this block space.