Class IngredientsValueTypeWorldRenderer
java.lang.Object
org.cyclops.integrateddynamics.client.render.valuetype.IngredientsValueTypeWorldRenderer
- All Implemented Interfaces:
IValueTypeWorldRenderer
A value type world renderer for blocks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static intgetSmallestSquareFrom(int n) protected static final booleanisInt(double n) protected static <T> TprepareElementForTick(List<T> elements, int tick, com.google.common.base.Supplier<T> defaultFactory) static voidrenderGrid(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, IPartContainer partContainer, net.minecraft.core.Direction direction, IPartType partType, List<IValue> values, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float alpha) voidrenderValue(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, IPartContainer partContainer, net.minecraft.core.Direction direction, IPartType partType, IValue value, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float alpha) Render the overlay.
-
Constructor Details
-
IngredientsValueTypeWorldRenderer
public IngredientsValueTypeWorldRenderer()
-
-
Method Details
-
renderValue
public void renderValue(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, IPartContainer partContainer, net.minecraft.core.Direction direction, IPartType partType, IValue value, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float alpha) Description copied from interface:IValueTypeWorldRendererRender the overlay.- Specified by:
renderValuein interfaceIValueTypeWorldRenderer- Parameters:
context- The render contextpartContainer- The part container for this partdirection- The direction this part is facingpartType- The part type that is being overlayedvalue- The value to renderpartialTicks- The partial tickmatrixStack- The matrix render stack.renderTypeBuffer- The render type buffer.combinedLight- The combined light value.combinedOverlay- The combined overlay value.alpha- The alpha to render with.
-
renderGrid
public static void renderGrid(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, IPartContainer partContainer, net.minecraft.core.Direction direction, IPartType partType, List<IValue> values, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float alpha) -
prepareElementForTick
@Nullable protected static <T> T prepareElementForTick(List<T> elements, int tick, com.google.common.base.Supplier<T> defaultFactory) -
getSmallestSquareFrom
protected static int getSmallestSquareFrom(int n) -
isInt
protected static final boolean isInt(double n)
-