Class CachedBlockBuffers

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

public class CachedBlockBuffers extends Object
  • Field Details

  • Constructor Details

    • CachedBlockBuffers

      public CachedBlockBuffers()
  • 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