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<@Nullable Object> private final Identifierprivate 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<Material.Baked> private static final ModelDiscovery.Slot<TextureSlots> private static final ModelDiscovery.Slot<ItemTransforms> private final Map<ModelState, QuadCollection> private @Nullable ModelDiscovery.ModelWrapperprivate static final intprivate booleanprivate final UnbakedModelFields inherited from interface ResolvedModel
DEFAULT_AMBIENT_OCCLUSION, DEFAULT_GUI_LIGHT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateModelWrapper(Identifier id, UnbakedModel wrapped, boolean valid) -
Method Summary
Modifier and TypeMethodDescriptionprivate QuadCollectionbakeDefaultState(TextureSlots textureSlots, ModelBaker baker, ModelState state) bakeTopGeometry(TextureSlots textureSlots, ModelBaker baker, ModelState state) private <T> TgetSimpleProperty(ModelDiscovery.Slot<T> key, Function<ResolvedModel, T> getter) private <T> @Nullable TgetSlot(ModelDiscovery.Slot<T> key) boolean@Nullable ResolvedModelparent()resolveParticleMaterial(TextureSlots textureSlots, ModelBaker baker) private static <T> ModelDiscovery.Slot<T> slot(int index) private <T> TupdateSlot(ModelDiscovery.Slot<T> key, T value) 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
private boolean valid -
parent
-
wrapped
-
fixedSlots
-
modelBakeCache
-
-
Constructor Details
-
ModelWrapper
-
-
Method Details
-
slot
-
wrapped
- Specified by:
wrappedin interfaceResolvedModel
-
parent
- Specified by:
parentin interfaceResolvedModel
-
debugName
- Specified by:
debugNamein interfaceModelDebugName
-
getSlot
-
updateSlot
-
getSimpleProperty
-
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
-
resolveParticleMaterial
- Specified by:
resolveParticleMaterialin interfaceResolvedModel
-
bakeDefaultState
private QuadCollection bakeDefaultState(TextureSlots textureSlots, ModelBaker baker, ModelState state) -
bakeTopGeometry
public QuadCollection bakeTopGeometry(TextureSlots textureSlots, ModelBaker baker, ModelState state) - Specified by:
bakeTopGeometryin interfaceResolvedModel
-
getTopAdditionalProperties
- Specified by:
getTopAdditionalPropertiesin interfaceResolvedModelExtension
-