private static final class FluidModel.CachingBakedFluid extends FluidModel.BakedFluid
Modifier and Type | Field and Description |
---|---|
private com.google.common.cache.LoadingCache<java.lang.Long,FluidModel.BakedFluid> |
modelCache |
color, faceQuads, flowing, gas, modelLocation, overlay, still, transformation, transforms
Constructor and Description |
---|
CachingBakedFluid(TransformationMatrix transformation,
com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms,
ResourceLocation modelLocation,
int color,
TextureAtlasSprite still,
TextureAtlasSprite flowing,
java.util.Optional<TextureAtlasSprite> overlay,
boolean gas,
java.util.Optional<IModelData> stateOption) |
Modifier and Type | Method and Description |
---|---|
private static int[] |
getCorners(java.util.Optional<IModelData> stateOption)
Gets the quantized fluid levels for each corner.
|
private static int |
getFlow(java.util.Optional<IModelData> stateOption)
Gets the quantized flow direction of the fluid.
|
private static boolean[] |
getOverlay(java.util.Optional<IModelData> stateOption)
Gets the overlay texture flag for each side.
|
java.util.List<BakedQuad> |
getQuads(BlockState state,
Direction side,
java.util.Random rand,
IModelData modelData) |
doesHandlePerspectives, func_230044_c_, getOverrides, getParticleTexture, getQuads, handlePerspective, isAmbientOcclusion, isBuiltInRenderer, isGui3d
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getItemCameraTransforms
getBakedModel, getModelData, getParticleTexture, isAmbientOcclusion
private final com.google.common.cache.LoadingCache<java.lang.Long,FluidModel.BakedFluid> modelCache
public CachingBakedFluid(TransformationMatrix transformation, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms, ResourceLocation modelLocation, int color, TextureAtlasSprite still, TextureAtlasSprite flowing, java.util.Optional<TextureAtlasSprite> overlay, boolean gas, java.util.Optional<IModelData> stateOption)
private static int[] getCorners(java.util.Optional<IModelData> stateOption)
private static int getFlow(java.util.Optional<IModelData> stateOption)
private static boolean[] getOverlay(java.util.Optional<IModelData> stateOption)
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand, IModelData modelData)