public interface IClientRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
drawPressureGauge(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.gui.FontRenderer fontRenderer,
float minPressure,
float maxPressure,
float dangerPressure,
float minWorkingPressure,
float currentPressure,
int xPos,
int yPos)
Draws a Pressure Gauge, the same which is also used in many PneumaticCraft applications.
|
IGuiAnimatedStat |
getAnimatedStat(net.minecraft.client.gui.screen.Screen gui,
int backgroundColor)
Returns a GuiAnimatedStat without icon.
|
IGuiAnimatedStat |
getAnimatedStat(net.minecraft.client.gui.screen.Screen gui,
net.minecraft.item.ItemStack iconStack,
int backgroundColor)
Returns a GuiAnimatedStat which uses an itemstack as static icon.
|
IGuiAnimatedStat |
getAnimatedStat(net.minecraft.client.gui.screen.Screen gui,
net.minecraft.util.ResourceLocation iconTexture,
int backgroundColor)
Returns a GuiAnimatedStat which uses a texture location as static icon.
|
IGuiAnimatedStat |
getAnimatedStat(net.minecraft.client.gui.screen.Screen gui,
java.lang.String iconTexture,
int backgroundColor)
Deprecated.
|
void |
registerRenderOverride(net.minecraftforge.registries.IForgeRegistryEntry<?> entry,
IAssemblyRenderOverriding renderOverride)
Register some custom item rendering behaviour for an item when held in an Assembly machine.
|
IGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screen.Screen gui, int backgroundColor)
gui - the owning GUI screenbackgroundColor - background color for the stat in ARGB formatIGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screen.Screen gui, net.minecraft.item.ItemStack iconStack, int backgroundColor)
gui - the owning GUI screeniconStack - an itemstack to use as the stat widget's iconbackgroundColor - background color for the stat in ARGB format@Deprecated IGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screen.Screen gui, java.lang.String iconTexture, int backgroundColor)
getAnimatedStat(Screen, ResourceLocation, int)gui - the owning GUI screeniconTexture - name of a texture to use as the stat widget's iconbackgroundColor - background color for the stat in ARGB formatIGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screen.Screen gui, net.minecraft.util.ResourceLocation iconTexture, int backgroundColor)
gui - the owning GUI screeniconTexture - a texture to use as the stat widget's iconbackgroundColor - background color for the stat in ARGB formatvoid drawPressureGauge(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.gui.FontRenderer fontRenderer,
float minPressure,
float maxPressure,
float dangerPressure,
float minWorkingPressure,
float currentPressure,
int xPos,
int yPos)
matrixStack - the matrix stackfontRenderer - fontrenderer used to draw the numbers of the pressure gauge.minPressure - The minimal pressure that needs to be displayed (this is -1 in most applications).maxPressure - The maximal pressure that needs to be rendered (this is 7 for tier one machines, and 25 for tier two).dangerPressure - The transition pressure from green to red (this is 5 for tier one, and 20 for tier two machines).minWorkingPressure - The transition pressure from yellow to green (varies per machine).currentPressure - The pressure that the needle should point to.xPos - x position of the gauge.yPos - y position of the gauge.void registerRenderOverride(@Nonnull
net.minecraftforge.registries.IForgeRegistryEntry<?> entry,
@Nonnull
IAssemblyRenderOverriding renderOverride)
entry - a Forge registry entry, which should be an itemrenderOverride - customized rendering behaviour for that item