Class CachedBuffers

java.lang.Object
net.createmod.catnip.render.CachedBuffers

public class CachedBuffers extends Object
  • Field Details

  • Constructor Details

    • CachedBuffers

      public CachedBuffers()
  • Method Details

    • block

      public static SuperByteBuffer block(net.minecraft.world.level.block.state.BlockState toRender)
      Creates and caches a SuperByteBuffer that has the model of a BlockState baked into it
      Parameters:
      toRender - the BlockState to be rendered
      Returns:
      the cached SuperByteBuffer
    • block

      public static SuperByteBuffer block(SuperByteBufferCache.Compartment<net.minecraft.world.level.block.state.BlockState> compartment, net.minecraft.world.level.block.state.BlockState toRender)
      Creates a SuperByteBuffer that has the model of a BlockState baked into it
      and caches it in the given Compartment
      Parameters:
      compartment - the Compartment the Buffer should be cached in
      toRender - the BlockState to be rendered
      Returns:
      the cached SuperByteBuffer
    • partial

      public static SuperByteBuffer partial(com.jozufozu.flywheel.core.PartialModel partial, net.minecraft.world.level.block.state.BlockState referenceState)
    • partial

      public static SuperByteBuffer partial(com.jozufozu.flywheel.core.PartialModel partial, net.minecraft.world.level.block.state.BlockState referenceState, Supplier<com.mojang.blaze3d.vertex.PoseStack> modelTransform)
    • partialFacing

      public static SuperByteBuffer partialFacing(com.jozufozu.flywheel.core.PartialModel partial, net.minecraft.world.level.block.state.BlockState referenceState)
    • partialFacing

      public static SuperByteBuffer partialFacing(com.jozufozu.flywheel.core.PartialModel partial, net.minecraft.world.level.block.state.BlockState referenceState, net.minecraft.core.Direction facing)
    • partialFacingVertical

      public static SuperByteBuffer partialFacingVertical(com.jozufozu.flywheel.core.PartialModel partial, net.minecraft.world.level.block.state.BlockState referenceState, net.minecraft.core.Direction facing)
    • partialDirectional

      public static SuperByteBuffer partialDirectional(com.jozufozu.flywheel.core.PartialModel partial, net.minecraft.world.level.block.state.BlockState referenceState, net.minecraft.core.Direction dir, Supplier<com.mojang.blaze3d.vertex.PoseStack> modelTransform)
    • rotateToFace

      public static Supplier<com.mojang.blaze3d.vertex.PoseStack> rotateToFace(net.minecraft.core.Direction facing)
    • rotateToFaceVertical

      public static Supplier<com.mojang.blaze3d.vertex.PoseStack> rotateToFaceVertical(net.minecraft.core.Direction facing)