Package de.mrjulsen.crn.forge.client
Class CopycatDisplayModel
java.lang.Object
net.minecraftforge.client.model.BakedModelWrapper<net.minecraft.client.resources.model.BakedModel>
com.simibubi.create.foundation.model.BakedModelWrapperWithData
com.simibubi.create.content.decoration.copycat.CopycatModel
de.mrjulsen.crn.forge.client.CopycatDisplayModel
- All Implemented Interfaces:
net.minecraft.client.resources.model.BakedModel,net.minecraftforge.client.extensions.IForgeBakedModel
public class CopycatDisplayModel
extends com.simibubi.create.content.decoration.copycat.CopycatModel
-
Field Summary
Fields inherited from class com.simibubi.create.content.decoration.copycat.CopycatModel
MATERIAL_PROPERTYFields inherited from class net.minecraftforge.client.model.BakedModelWrapper
originalModel -
Constructor Summary
ConstructorsConstructorDescriptionCopycatDisplayModel(net.minecraft.client.resources.model.BakedModel wrapped, com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour ctDisplay, com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour ctFrame, net.minecraft.resources.ResourceLocation copycatTexture) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<net.minecraft.client.renderer.block.model.BakedQuad> cropQuads(net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand, net.minecraft.world.level.block.state.BlockState material, net.minecraftforge.client.model.data.ModelData wrappedData, net.minecraft.client.renderer.RenderType renderType, net.minecraft.client.renderer.block.model.BakedQuad templateQuad) protected net.minecraftforge.client.model.data.ModelData.BuildergatherModelData(net.minecraftforge.client.model.data.ModelData.Builder builder, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraftforge.client.model.data.ModelData blockEntityData) protected List<net.minecraft.client.renderer.block.model.BakedQuad> getCroppedQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand, net.minecraft.world.level.block.state.BlockState material, net.minecraftforge.client.model.data.ModelData wrappedData, net.minecraft.client.renderer.RenderType renderType) List<net.minecraft.client.renderer.block.model.BakedQuad> getQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand) List<net.minecraft.client.renderer.block.model.BakedQuad> getQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand, net.minecraftforge.client.model.data.ModelData data, net.minecraft.client.renderer.RenderType renderType) static net.minecraft.client.renderer.block.model.BakedQuadremapQuadWithPreciseCrop(net.minecraft.client.renderer.block.model.BakedQuad material, net.minecraft.world.phys.Vec3 p0, net.minecraft.world.phys.Vec3 p1, net.minecraft.world.phys.Vec3 p2, net.minecraft.world.phys.Vec3 p3, double u0, double v0, double u1, double v1) static List<net.minecraft.client.renderer.block.model.BakedQuad> splitIntoCornerQuadrants(net.minecraft.client.renderer.block.model.BakedQuad geo, net.minecraft.client.renderer.block.model.BakedQuad material) Methods inherited from class com.simibubi.create.content.decoration.copycat.CopycatModel
getMaterial, getModelOf, getParticleIconMethods inherited from class com.simibubi.create.foundation.model.BakedModelWrapperWithData
getModelDataMethods inherited from class net.minecraftforge.client.model.BakedModelWrapper
applyTransform, getOverrides, getParticleIcon, getRenderPasses, getRenderTypes, getRenderTypes, getTransforms, isCustomRenderer, isGui3d, useAmbientOcclusion, useAmbientOcclusion, useAmbientOcclusion, usesBlockLight
-
Constructor Details
-
CopycatDisplayModel
public CopycatDisplayModel(net.minecraft.client.resources.model.BakedModel wrapped, com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour ctDisplay, com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour ctFrame, net.minecraft.resources.ResourceLocation copycatTexture)
-
-
Method Details
-
gatherModelData
protected net.minecraftforge.client.model.data.ModelData.Builder gatherModelData(net.minecraftforge.client.model.data.ModelData.Builder builder, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraftforge.client.model.data.ModelData blockEntityData) - Overrides:
gatherModelDatain classcom.simibubi.create.content.decoration.copycat.CopycatModel
-
getQuads
public List<net.minecraft.client.renderer.block.model.BakedQuad> getQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand) - Specified by:
getQuadsin interfacenet.minecraft.client.resources.model.BakedModel- Overrides:
getQuadsin classcom.simibubi.create.content.decoration.copycat.CopycatModel
-
getQuads
public List<net.minecraft.client.renderer.block.model.BakedQuad> getQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand, net.minecraftforge.client.model.data.ModelData data, net.minecraft.client.renderer.RenderType renderType) - Specified by:
getQuadsin interfacenet.minecraftforge.client.extensions.IForgeBakedModel- Overrides:
getQuadsin classcom.simibubi.create.content.decoration.copycat.CopycatModel
-
getCroppedQuads
protected List<net.minecraft.client.renderer.block.model.BakedQuad> getCroppedQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand, net.minecraft.world.level.block.state.BlockState material, net.minecraftforge.client.model.data.ModelData wrappedData, net.minecraft.client.renderer.RenderType renderType) - Specified by:
getCroppedQuadsin classcom.simibubi.create.content.decoration.copycat.CopycatModel
-
cropQuads
protected List<net.minecraft.client.renderer.block.model.BakedQuad> cropQuads(net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand, net.minecraft.world.level.block.state.BlockState material, net.minecraftforge.client.model.data.ModelData wrappedData, net.minecraft.client.renderer.RenderType renderType, net.minecraft.client.renderer.block.model.BakedQuad templateQuad) -
splitIntoCornerQuadrants
public static List<net.minecraft.client.renderer.block.model.BakedQuad> splitIntoCornerQuadrants(net.minecraft.client.renderer.block.model.BakedQuad geo, net.minecraft.client.renderer.block.model.BakedQuad material) -
remapQuadWithPreciseCrop
public static net.minecraft.client.renderer.block.model.BakedQuad remapQuadWithPreciseCrop(net.minecraft.client.renderer.block.model.BakedQuad material, net.minecraft.world.phys.Vec3 p0, net.minecraft.world.phys.Vec3 p1, net.minecraft.world.phys.Vec3 p2, net.minecraft.world.phys.Vec3 p3, double u0, double v0, double u1, double v1)
-