Record Class BlockModelDefinition
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.BlockModelDefinition
- Record Components:
simpleModels
-multipartModel
-
@Environment(CLIENT)
public record BlockModelDefinition(Optional<BlockModelDefinition.Variants> simpleModels, Optional<BlockModelDefinition.Multipart> multipartModel)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/BlockModelDefinition
intermediary net/minecraft/class_790
official gsy
named simpleModels
intermediary comp_3813
official b
named multipartModel
intermediary comp_3746
official c
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<BlockModelDefinition> (package private) static final Logger
private final Optional
<BlockModelDefinition.Multipart> The field for themultipartModel
record component.private final Optional
<BlockModelDefinition.Variants> The field for thesimpleModels
record component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockModelDefinition
(Optional<BlockModelDefinition.Variants> optional, Optional<BlockModelDefinition.Multipart> optional2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.load
(StateManager<Block, BlockState> stateManager, Supplier<String> idSupplier) Returns the value of themultipartModel
record component.Returns the value of thesimpleModels
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
simpleModels
The field for thesimpleModels
record component. -
multipartModel
The field for themultipartModel
record component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/render/model/json/BlockModelDefinition;LOGGER:Lorg/slf4j/Logger;
intermediary field_53162
Lnet/minecraft/class_790;field_53162:Lorg/slf4j/Logger;
official d
Lgsy;d:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/render/model/json/BlockModelDefinition;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56928
Lnet/minecraft/class_790;field_56928:Lcom/mojang/serialization/Codec;
official a
Lgsy;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
BlockModelDefinition
public BlockModelDefinition(Optional<BlockModelDefinition.Variants> optional, Optional<BlockModelDefinition.Multipart> optional2)
-
-
Method Details
-
load
public Map<BlockState,BlockStateModel.UnbakedGrouped> load(StateManager<Block, BlockState> stateManager, Supplier<String> idSupplier) - Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/client/render/model/json/BlockModelDefinition;load(Lnet/minecraft/state/StateManager;Ljava/util/function/Supplier;)Ljava/util/Map;
intermediary method_62327
Lnet/minecraft/class_790;method_62327(Lnet/minecraft/class_2689;Ljava/util/function/Supplier;)Ljava/util/Map;
official a
Lgsy;a(Lebr;Ljava/util/function/Supplier;)Ljava/util/Map;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
simpleModels
Returns the value of thesimpleModels
record component.- Returns:
- the value of the
simpleModels
record component
-
multipartModel
Returns the value of themultipartModel
record component.- Returns:
- the value of the
multipartModel
record component
-