Class ImageGenerator
java.lang.Object
dev.latvian.mods.kubejs.web.local.client.ImageGenerator
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final it.unimi.dsi.fastutil.ints.Int2ObjectMap<com.mojang.blaze3d.pipeline.TextureTarget> static final net.minecraft.client.renderer.block.model.ItemTransformstatic final net.minecraft.resources.ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic dev.latvian.apps.tinyserver.http.response.HTTPResponseblock(KJSHTTPRequest req) static dev.latvian.apps.tinyserver.http.response.HTTPResponseblockTag(KJSHTTPRequest req) static dev.latvian.apps.tinyserver.http.response.HTTPResponsefluid(KJSHTTPRequest req) static dev.latvian.apps.tinyserver.http.response.HTTPResponsefluidTag(KJSHTTPRequest req) static com.mojang.blaze3d.pipeline.TextureTargetgetCanvas(int size) static dev.latvian.apps.tinyserver.http.response.HTTPResponseitem(KJSHTTPRequest req) static dev.latvian.apps.tinyserver.http.response.HTTPResponseitemTag(KJSHTTPRequest req) static dev.latvian.apps.tinyserver.http.response.HTTPResponsestatic ImageGenerator.CachedImagerenderBlock(KJSHTTPRequest req, net.minecraft.world.level.block.state.BlockState state, boolean wildcard) static ImageGenerator.CachedImagerenderFluid(KJSHTTPRequest req, net.neoforged.neoforge.fluids.FluidStack stack, boolean wildcard) static ImageGenerator.CachedImagerenderItem(KJSHTTPRequest req, int imageSize, net.minecraft.world.item.ItemStack stack, boolean wildcard)
-
Field Details
-
ROTATED_BLOCK_TRANSFORM
public static final net.minecraft.client.renderer.block.model.ItemTransform ROTATED_BLOCK_TRANSFORM -
WILDCARD_TEXTURE
public static final net.minecraft.resources.ResourceLocation WILDCARD_TEXTURE -
FB_CACHE
public static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<com.mojang.blaze3d.pipeline.TextureTarget> FB_CACHE
-
-
Constructor Details
-
ImageGenerator
public ImageGenerator()
-
-
Method Details
-
getCanvas
public static com.mojang.blaze3d.pipeline.TextureTarget getCanvas(int size) -
renderAllItems
public static dev.latvian.apps.tinyserver.http.response.HTTPResponse renderAllItems(KJSHTTPRequest req) throws Exception - Throws:
Exception
-
item
public static dev.latvian.apps.tinyserver.http.response.HTTPResponse item(KJSHTTPRequest req) throws Exception - Throws:
Exception
-
renderItem
public static ImageGenerator.CachedImage renderItem(KJSHTTPRequest req, int imageSize, net.minecraft.world.item.ItemStack stack, boolean wildcard) -
block
public static dev.latvian.apps.tinyserver.http.response.HTTPResponse block(KJSHTTPRequest req) throws Exception - Throws:
Exception
-
renderBlock
public static ImageGenerator.CachedImage renderBlock(KJSHTTPRequest req, net.minecraft.world.level.block.state.BlockState state, boolean wildcard) -
fluid
public static dev.latvian.apps.tinyserver.http.response.HTTPResponse fluid(KJSHTTPRequest req) throws Exception - Throws:
Exception
-
renderFluid
public static ImageGenerator.CachedImage renderFluid(KJSHTTPRequest req, net.neoforged.neoforge.fluids.FluidStack stack, boolean wildcard) -
itemTag
public static dev.latvian.apps.tinyserver.http.response.HTTPResponse itemTag(KJSHTTPRequest req) throws Exception - Throws:
Exception
-
blockTag
public static dev.latvian.apps.tinyserver.http.response.HTTPResponse blockTag(KJSHTTPRequest req) throws Exception - Throws:
Exception
-
fluidTag
public static dev.latvian.apps.tinyserver.http.response.HTTPResponse fluidTag(KJSHTTPRequest req) throws Exception - Throws:
Exception
-