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 ResourceLocationprivate 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.ModelWrapperprivate static final int(package private) boolean(package private) final UnbakedModelFields inherited from interface net.minecraft.client.resources.model.ResolvedModel
DEFAULT_AMBIENT_OCCLUSION, DEFAULT_GUI_LIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate QuadCollectionbakeDefaultState(TextureSlots pTextureSlots, ModelBaker pModelBaker, ModelState pModelState) bakeTopGeometry(TextureSlots p_405587_, ModelBaker p_405166_, ModelState p_405646_) private <T> TgetSimpleProperty(ModelDiscovery.Slot<T> pSlot, Function<ResolvedModel, T> pPropertyGetter) private <T> TgetSlot(ModelDiscovery.Slot<T> pSlot) booleanparent()resolveParticleSprite(TextureSlots p_405019_, ModelBaker p_405134_) private static <T> ModelDiscovery.Slot<T> slot(int pIndex) private <T> TupdateSlot(ModelDiscovery.Slot<T> pSlot, T pValue) 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 pId, UnbakedModel pWrapped, boolean pValid)
-
-
Method Details
-
slot
-
wrapped
- Specified by:
wrappedin interfaceResolvedModel
-
parent
- Specified by:
parentin interfaceResolvedModel
-
debugName
- Specified by:
debugNamein interfaceModelDebugName
-
getSlot
-
updateSlot
-
getSimpleProperty
private <T> T getSimpleProperty(ModelDiscovery.Slot<T> pSlot, Function<ResolvedModel, T> pPropertyGetter) -
getTopAmbientOcclusion
public boolean getTopAmbientOcclusion()- Specified by:
getTopAmbientOcclusionin interfaceResolvedModel
-
getTopGuiLight
- Specified by:
getTopGuiLightin interfaceResolvedModel
-
getTopTransforms
- Specified by:
getTopTransformsin interfaceResolvedModel
-
getTopGeometry
- Specified by:
getTopGeometryin interfaceResolvedModel
-
getTopTextureSlots
- Specified by:
getTopTextureSlotsin interfaceResolvedModel
-
resolveParticleSprite
- Specified by:
resolveParticleSpritein interfaceResolvedModel
-
bakeDefaultState
private QuadCollection bakeDefaultState(TextureSlots pTextureSlots, ModelBaker pModelBaker, ModelState pModelState) -
bakeTopGeometry
public QuadCollection bakeTopGeometry(TextureSlots p_405587_, ModelBaker p_405166_, ModelState p_405646_) - Specified by:
bakeTopGeometryin interfaceResolvedModel
-
getTopAdditionalProperties
- Specified by:
getTopAdditionalPropertiesin interfaceResolvedModelExtension
-