Class ModelDiscovery.ModelWrapper
java.lang.Object
net.minecraft.client.resources.model.ModelDiscovery.ModelWrapper
- All Implemented Interfaces:
ModelDebugName
,ResolvedModel
,ResolvedModelExtension
- Enclosing class:
ModelDiscovery
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicReferenceArray
<Object> private final ResourceLocation
private static final ModelDiscovery.Slot
<ContextMap> private static final ModelDiscovery.Slot
<Boolean> private static final ModelDiscovery.Slot
<QuadCollection> private static final ModelDiscovery.Slot
<UnbakedGeometry> private static final ModelDiscovery.Slot
<UnbakedModel.GuiLight> private static final ModelDiscovery.Slot
<TextureAtlasSprite> private static final ModelDiscovery.Slot
<TextureSlots> private static final ModelDiscovery.Slot
<ItemTransforms> private final Map
<ModelState, QuadCollection> (package private) ModelDiscovery.ModelWrapper
private static final int
(package private) boolean
(package private) final UnbakedModel
Fields inherited from interface net.minecraft.client.resources.model.ResolvedModel
DEFAULT_AMBIENT_OCCLUSION, DEFAULT_GUI_LIGHT
-
Constructor Summary
ConstructorsConstructorDescriptionModelWrapper
(ResourceLocation p_405048_, UnbakedModel p_404712_, boolean p_404729_) -
Method Summary
Modifier and TypeMethodDescriptionprivate QuadCollection
bakeDefaultState
(TextureSlots p_405546_, ModelBaker p_404641_, ModelState p_405363_) bakeTopGeometry
(TextureSlots p_405587_, ModelBaker p_405166_, ModelState p_405646_) private <T> T
getSimpleProperty
(ModelDiscovery.Slot<T> p_405509_, Function<ResolvedModel, T> p_405257_) private <T> T
getSlot
(ModelDiscovery.Slot<T> p_405631_) boolean
parent()
resolveParticleSprite
(TextureSlots p_405019_, ModelBaker p_405134_) private static <T> ModelDiscovery.Slot
<T> slot
(int p_405746_) private <T> T
updateSlot
(ModelDiscovery.Slot<T> p_404819_, T p_404859_) wrapped()
-
Field Details
-
KEY_AMBIENT_OCCLUSION
-
KEY_GUI_LIGHT
-
KEY_GEOMETRY
-
KEY_TRANSFORMS
-
KEY_TEXTURE_SLOTS
-
KEY_PARTICLE_SPRITE
-
KEY_DEFAULT_GEOMETRY
-
KEY_ADDITIONAL_PROPERTIES
-
SLOT_COUNT
private static final int SLOT_COUNT- See Also:
-
id
-
valid
boolean valid -
parent
-
wrapped
-
fixedSlots
-
modelBakeCache
-
-
Constructor Details
-
ModelWrapper
ModelWrapper(ResourceLocation p_405048_, UnbakedModel p_404712_, boolean p_404729_)
-
-
Method Details
-
slot
-
wrapped
- Specified by:
wrapped
in interfaceResolvedModel
-
parent
- Specified by:
parent
in interfaceResolvedModel
-
debugName
- Specified by:
debugName
in interfaceModelDebugName
-
getSlot
-
updateSlot
-
getSimpleProperty
private <T> T getSimpleProperty(ModelDiscovery.Slot<T> p_405509_, Function<ResolvedModel, T> p_405257_) -
getTopAmbientOcclusion
public boolean getTopAmbientOcclusion()- Specified by:
getTopAmbientOcclusion
in interfaceResolvedModel
-
getTopGuiLight
- Specified by:
getTopGuiLight
in interfaceResolvedModel
-
getTopTransforms
- Specified by:
getTopTransforms
in interfaceResolvedModel
-
getTopGeometry
- Specified by:
getTopGeometry
in interfaceResolvedModel
-
getTopTextureSlots
- Specified by:
getTopTextureSlots
in interfaceResolvedModel
-
resolveParticleSprite
- Specified by:
resolveParticleSprite
in interfaceResolvedModel
-
bakeDefaultState
private QuadCollection bakeDefaultState(TextureSlots p_405546_, ModelBaker p_404641_, ModelState p_405363_) -
bakeTopGeometry
public QuadCollection bakeTopGeometry(TextureSlots p_405587_, ModelBaker p_405166_, ModelState p_405646_) - Specified by:
bakeTopGeometry
in interfaceResolvedModel
-
getTopAdditionalProperties
- Specified by:
getTopAdditionalProperties
in interfaceResolvedModelExtension
-