private static final class ModelFluid.CachingBakedFluid extends ModelFluid.BakedFluid
Modifier and Type | Field and Description |
---|---|
private com.google.common.cache.LoadingCache<java.lang.Long,ModelFluid.BakedFluid> |
modelCache |
color, faceQuads, flowing, format, gas, overlay, still, transformation, transforms
Constructor and Description |
---|
CachingBakedFluid(java.util.Optional<TRSRTransformation> transformation,
com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms,
VertexFormat format,
int color,
TextureAtlasSprite still,
TextureAtlasSprite flowing,
java.util.Optional<TextureAtlasSprite> overlay,
boolean gas,
java.util.Optional<IExtendedBlockState> stateOption) |
Modifier and Type | Method and Description |
---|---|
private static int[] |
getCorners(java.util.Optional<IExtendedBlockState> stateOption)
Gets the quantized fluid levels for each corner.
|
private static int |
getFlow(java.util.Optional<IExtendedBlockState> stateOption)
Gets the quantized flow direction of the fluid.
|
private static boolean[] |
getOverlay(java.util.Optional<IExtendedBlockState> stateOption)
Gets the overlay texture flag for each side.
|
java.util.List<BakedQuad> |
getQuads(IBlockState state,
EnumFacing side,
long rand) |
getOverrides, getParticleTexture, handlePerspective, isAmbientOcclusion, isBuiltInRenderer, isGui3d
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getItemCameraTransforms, isAmbientOcclusion
private final com.google.common.cache.LoadingCache<java.lang.Long,ModelFluid.BakedFluid> modelCache
public CachingBakedFluid(java.util.Optional<TRSRTransformation> transformation, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms, VertexFormat format, int color, TextureAtlasSprite still, TextureAtlasSprite flowing, java.util.Optional<TextureAtlasSprite> overlay, boolean gas, java.util.Optional<IExtendedBlockState> stateOption)
private static int[] getCorners(java.util.Optional<IExtendedBlockState> stateOption)
private static int getFlow(java.util.Optional<IExtendedBlockState> stateOption)
private static boolean[] getOverlay(java.util.Optional<IExtendedBlockState> stateOption)
public java.util.List<BakedQuad> getQuads(@Nullable IBlockState state, @Nullable EnumFacing side, long rand)
getQuads
in interface IBakedModel
getQuads
in class ModelFluid.BakedFluid