Class AbstractBakedPropertiesModel
java.lang.Object
codechicken.lib.model.bakedmodels.AbstractBakedPropertiesModel
- All Implemented Interfaces:
PerspectiveModel,IModelParticleProvider,net.minecraft.client.resources.model.BakedModel,net.minecraftforge.client.extensions.IForgeBakedModel
- Direct Known Subclasses:
PerspectiveAwareBakedModel,PerspectiveAwareLayeredModel
@Deprecated
public abstract class AbstractBakedPropertiesModel
extends Object
implements PerspectiveModel, IModelParticleProvider, net.minecraft.client.resources.model.BakedModel
Deprecated.
Created by covers1624 on 1/02/2017.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.resources.model.BakedModelapplyTransform(net.minecraft.world.item.ItemDisplayContext context, com.mojang.blaze3d.vertex.PoseStack pStack, boolean leftFlip) Deprecated.protected booleancheckDepth(net.minecraft.client.renderer.block.model.BakedQuad quad, Vector3 hit, net.minecraft.core.Direction hitFace) Deprecated.protected List<net.minecraft.client.renderer.block.model.BakedQuad>getAllQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraftforge.client.model.data.ModelData modelData) Deprecated.Set<net.minecraft.client.renderer.texture.TextureAtlasSprite>getDestroyEffects(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData data) Deprecated.Used to retrieve the destroy particles for the block.Set<net.minecraft.client.renderer.texture.TextureAtlasSprite>getHitEffects(net.minecraft.world.phys.BlockHitResult traceResult, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData modelData) Deprecated.Used to retrieve the particles to randomly choose from for hit particles.@Nullable PerspectiveModelStateDeprecated.ThePerspectiveModelStatefor this model.net.minecraft.client.renderer.texture.TextureAtlasSpriteDeprecated.booleanDeprecated.booleanisGui3d()Deprecated.booleanDeprecated.booleanDeprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.model.BakedModel
getOverrides, getQuads, getTransformsMethods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getModelData, getParticleIcon, getQuads, getRenderPasses, getRenderTypes, getRenderTypes, useAmbientOcclusion, useAmbientOcclusion
-
Field Details
-
properties
Deprecated.
-
-
Constructor Details
-
AbstractBakedPropertiesModel
Deprecated.
-
-
Method Details
-
useAmbientOcclusion
public boolean useAmbientOcclusion()Deprecated.- Specified by:
useAmbientOcclusionin interfacenet.minecraft.client.resources.model.BakedModel
-
isGui3d
public boolean isGui3d()Deprecated.- Specified by:
isGui3din interfacenet.minecraft.client.resources.model.BakedModel
-
isCustomRenderer
public boolean isCustomRenderer()Deprecated.- Specified by:
isCustomRendererin interfacenet.minecraft.client.resources.model.BakedModel
-
usesBlockLight
public boolean usesBlockLight()Deprecated.- Specified by:
usesBlockLightin interfacenet.minecraft.client.resources.model.BakedModel
-
getParticleIcon
public net.minecraft.client.renderer.texture.TextureAtlasSprite getParticleIcon()Deprecated.- Specified by:
getParticleIconin interfacenet.minecraft.client.resources.model.BakedModel- Specified by:
getParticleIconin interfaceIModelParticleProvider
-
getAllQuads
protected List<net.minecraft.client.renderer.block.model.BakedQuad> getAllQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraftforge.client.model.data.ModelData modelData) Deprecated. -
getHitEffects
public Set<net.minecraft.client.renderer.texture.TextureAtlasSprite> getHitEffects(@Nonnull net.minecraft.world.phys.BlockHitResult traceResult, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData modelData) Deprecated.Description copied from interface:IModelParticleProviderUsed to retrieve the particles to randomly choose from for hit particles.- Specified by:
getHitEffectsin interfaceIModelParticleProvider- Parameters:
traceResult- The trace result.state- The state, getActualState and getExtendedState has been called.world- The world.pos- The pos.- Returns:
- A Set of Textures to use.
-
checkDepth
protected boolean checkDepth(net.minecraft.client.renderer.block.model.BakedQuad quad, Vector3 hit, net.minecraft.core.Direction hitFace) Deprecated. -
getDestroyEffects
public Set<net.minecraft.client.renderer.texture.TextureAtlasSprite> getDestroyEffects(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData data) Deprecated.Description copied from interface:IModelParticleProviderUsed to retrieve the destroy particles for the block.- Specified by:
getDestroyEffectsin interfaceIModelParticleProvider- Parameters:
state- The state, getActualState and getExtendedState has been called.world- The world.pos- The pos.- Returns:
- A Set of Textures to use.
-
getModelState
Deprecated.Description copied from interface:PerspectiveModelThePerspectiveModelStatefor this model.- Specified by:
getModelStatein interfacePerspectiveModel- Returns:
- The state or
nullfor vanilla behaviour.
-
applyTransform
public net.minecraft.client.resources.model.BakedModel applyTransform(net.minecraft.world.item.ItemDisplayContext context, com.mojang.blaze3d.vertex.PoseStack pStack, boolean leftFlip) Deprecated.- Specified by:
applyTransformin interfacenet.minecraftforge.client.extensions.IForgeBakedModel- Specified by:
applyTransformin interfacePerspectiveModel
-