Interface Shape

All Known Implementing Classes:
CircleShape, CubeShape, CuboidShape, CylinderShape, EmptyShape, LineShape, QuadrilaterallyFacedConvexHexahedra, SphereShape, UnitShape, VoxelShapeBox

public interface Shape
  • Field Details

    • DIRECT_CODEC

      static final com.mojang.serialization.Codec<Shape> DIRECT_CODEC
    • UNIT_OR_DIRECT_CODEC

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

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

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

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

      static final DataType<Shape> DATA_TYPE
  • Method Details

    • type

      ShapeType type()
    • optimize

      default Shape optimize()
    • 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)