public class CloudRenderer extends java.lang.Object implements ISelectiveResourceReloadListener
Modifier and Type | Field and Description |
---|---|
private static float |
ALPHA |
private int |
cloudMode |
private DynamicTexture |
COLOR_TEX |
private int |
displayList |
private static VertexFormat |
FORMAT |
private static int |
HEIGHT |
private static float |
INSET |
private Minecraft |
mc |
private static float |
PX_SIZE |
private int |
renderDistance |
private int |
texH |
private ResourceLocation |
texture |
private int |
texW |
private static int |
TOP_SECTIONS |
private VertexBuffer |
vbo |
private static boolean |
WIREFRAME |
Constructor and Description |
---|
CloudRenderer() |
Modifier and Type | Method and Description |
---|---|
private void |
build() |
private float |
ceilToScale(float value) |
void |
checkSettings() |
private void |
dispose() |
private int |
fullCoord(double coord,
int scale) |
private int |
getScale() |
private boolean |
isBuilt() |
void |
onResourceManagerReload(IResourceManager resourceManager,
java.util.function.Predicate<IResourceType> resourcePredicate)
A version of onResourceManager that selectively chooses
IResourceType s
to reload. |
private void |
reloadTextures() |
boolean |
render(int cloudTicks,
float partialTicks) |
private void |
vertices(BufferBuilder buffer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onResourceManagerReload
private static final float PX_SIZE
private static final VertexFormat FORMAT
private static final int TOP_SECTIONS
private static final int HEIGHT
private static final float INSET
private static final float ALPHA
private static final boolean WIREFRAME
private final Minecraft mc
private final ResourceLocation texture
private int displayList
private VertexBuffer vbo
private int cloudMode
private int renderDistance
private DynamicTexture COLOR_TEX
private int texW
private int texH
private int getScale()
private float ceilToScale(float value)
private void vertices(BufferBuilder buffer)
private void dispose()
private void build()
private int fullCoord(double coord, int scale)
private boolean isBuilt()
public void checkSettings()
public boolean render(int cloudTicks, float partialTicks)
private void reloadTextures()
public void onResourceManagerReload(@Nonnull IResourceManager resourceManager, @Nonnull java.util.function.Predicate<IResourceType> resourcePredicate)
ISelectiveResourceReloadListener
IResourceType
s
to reload.
When using this, the given predicate should be called to ensure the relevant resources should
be reloaded at this time.onResourceManagerReload
in interface ISelectiveResourceReloadListener
resourceManager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloaded