public class GuiRegistry extends java.lang.Object implements IClientRegistry
| Modifier and Type | Field and Description |
|---|---|
static java.util.HashMap<net.minecraft.util.ResourceLocation,IAssemblyRenderOverriding> |
renderOverrides |
| 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)
Returns a GuiAnimatedStat which uses a texture location as static icon.
|
static GuiRegistry |
getInstance() |
void |
registerRenderOverride(net.minecraftforge.registries.IForgeRegistryEntry<?> entry,
IAssemblyRenderOverriding renderOverride)
Register some custom item rendering behaviour for an item when held in an Assembly machine.
|
public static final java.util.HashMap<net.minecraft.util.ResourceLocation,IAssemblyRenderOverriding> renderOverrides
public static GuiRegistry getInstance()
public IGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screen.Screen gui, int backgroundColor)
IClientRegistrygetAnimatedStat in interface IClientRegistrygui - the owning GUI screenbackgroundColor - background color for the stat in ARGB formatpublic IGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screen.Screen gui, net.minecraft.item.ItemStack iconStack, int backgroundColor)
IClientRegistrygetAnimatedStat in interface IClientRegistrygui - the owning GUI screeniconStack - an itemstack to use as the stat widget's iconbackgroundColor - background color for the stat in ARGB formatpublic IGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screen.Screen gui, java.lang.String iconTexture, int backgroundColor)
IClientRegistrygetAnimatedStat in interface IClientRegistrygui - the owning GUI screeniconTexture - name of a texture to use as the stat widget's iconbackgroundColor - background color for the stat in ARGB formatpublic IGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screen.Screen gui, net.minecraft.util.ResourceLocation iconTexture, int backgroundColor)
IClientRegistrygetAnimatedStat in interface IClientRegistrygui - the owning GUI screeniconTexture - a texture to use as the stat widget's iconbackgroundColor - background color for the stat in ARGB formatpublic 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)
IClientRegistrydrawPressureGauge in interface IClientRegistrymatrixStack - 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.public void registerRenderOverride(@Nonnull
net.minecraftforge.registries.IForgeRegistryEntry<?> entry,
@Nonnull
IAssemblyRenderOverriding renderOverride)
IClientRegistryregisterRenderOverride in interface IClientRegistryentry - a Forge registry entry, which should be an itemrenderOverride - customized rendering behaviour for that item