Class ExtrudedBlockModel
java.lang.Object
net.neoforged.neoforge.client.model.BakedModelWrapper<net.minecraft.client.resources.model.BakedModel>
com.simibubi.create.foundation.model.BakedModelWrapperWithData
com.simibubi.create.content.decoration.copycat.CopycatModel
com.petrolpark.compat.create.common.processing.extrusion.ExtrudedBlockModel
- All Implemented Interfaces:
net.minecraft.client.resources.model.BakedModel,net.neoforged.neoforge.client.extensions.IBakedModelExtension
public class ExtrudedBlockModel
extends com.simibubi.create.content.decoration.copycat.CopycatModel
-
Field Summary
FieldsFields inherited from class com.simibubi.create.content.decoration.copycat.CopycatModel
MATERIAL_PROPERTYFields inherited from class net.neoforged.neoforge.client.model.BakedModelWrapper
originalModel -
Constructor Summary
ConstructorsConstructorDescriptionExtrudedBlockModel(net.minecraft.world.level.block.state.BlockState extrusionResult, net.minecraft.core.Direction movementDirection, float progress) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.neoforged.neoforge.client.model.data.ModelData.BuildergatherModelData(net.neoforged.neoforge.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.neoforged.neoforge.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.neoforged.neoforge.client.model.data.ModelData wrappedData, net.minecraft.client.renderer.RenderType renderType) static int[]scale(int[] vertexData, float factor) Methods inherited from class com.simibubi.create.content.decoration.copycat.CopycatModel
getMaterial, getModelOf, getParticleIcon, getQuads, getQuadsMethods inherited from class com.simibubi.create.foundation.model.BakedModelWrapperWithData
getModelDataMethods inherited from class net.neoforged.neoforge.client.model.BakedModelWrapper
applyTransform, getOverrides, getParticleIcon, getRenderPasses, getRenderTypes, getRenderTypes, getTransforms, isCustomRenderer, isGui3d, useAmbientOcclusion, useAmbientOcclusion, usesBlockLight
-
Field Details
-
CUBE_AABB
protected static final net.minecraft.world.phys.AABB CUBE_AABB
-
-
Constructor Details
-
ExtrudedBlockModel
public ExtrudedBlockModel(net.minecraft.world.level.block.state.BlockState extrusionResult, net.minecraft.core.Direction movementDirection, float progress)
-
-
Method Details
-
gatherModelData
protected net.neoforged.neoforge.client.model.data.ModelData.Builder gatherModelData(net.neoforged.neoforge.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.neoforged.neoforge.client.model.data.ModelData blockEntityData) - Overrides:
gatherModelDatain 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.neoforged.neoforge.client.model.data.ModelData wrappedData, net.minecraft.client.renderer.RenderType renderType) - Specified by:
getCroppedQuadsin classcom.simibubi.create.content.decoration.copycat.CopycatModel
-
scale
public static int[] scale(int[] vertexData, float factor)
-