Interface Shape

All Superinterfaces:
RefOptimizer<Shape>
All Known Implementing Classes:
CircleShape, CubeShape, CuboidShape, CylinderShape, EmptyShape, LineShape, QuadrilaterallyFacedConvexHexahedra, RotatedShape, SphereShape, VoxelShapeBox

public interface Shape extends RefOptimizer<Shape>
  • Field Details

    • REGISTRY

      static final CustomRegistry<io.netty.buffer.ByteBuf, Shape> REGISTRY
    • CODEC

      static final com.mojang.serialization.Codec<Ref<Shape>> CODEC
    • STREAM_CODEC

      static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Ref<Shape>> STREAM_CODEC
    • DATA_TYPE

      static final DataType<Ref<Shape>> DATA_TYPE
  • Method Details

    • builtInTypes

      static void builtInTypes(CustomRegistryTypeCollector<io.netty.buffer.ByteBuf, Shape> registry)
    • type

      @Nullable default @Nullable CustomRegistryType<io.netty.buffer.ByteBuf, Shape> type()
    • buildLines

      void buildLines(float x, float y, float z, VertexCallback callback)
    • buildQuads

      void buildQuads(float x, float y, float z, VertexCallback callback)
    • contains

      default boolean contains(org.joml.Vector3fc p)
    • isVisible

      default boolean isVisible(double x, double y, double z, FrustumCheck frustum)