Package net.createmod.catnip.render
Class CachedBlockBuffers
java.lang.Object
net.createmod.catnip.render.CachedBlockBuffers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SuperByteBufferCache.Compartment<net.minecraft.world.level.block.state.BlockState> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SuperByteBufferblock(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 Compartmentstatic SuperByteBufferblock(net.minecraft.world.level.block.state.BlockState toRender) Creates and caches a SuperByteBuffer that has the model of a BlockState baked into it
-
Field Details
-
GENERIC_TILE
public static final SuperByteBufferCache.Compartment<net.minecraft.world.level.block.state.BlockState> GENERIC_TILE
-
-
Constructor Details
-
CachedBlockBuffers
public CachedBlockBuffers()
-
-
Method Details
-
block
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 intoRender- the BlockState to be rendered- Returns:
- the cached SuperByteBuffer
-