Record Class CoreGenerator.Context
java.lang.Object
java.lang.Record
net.tearpelato.craftcorelib.api.datagen.CoreGenerator.Context
- Enclosing class:
CoreGenerator
public static record CoreGenerator.Context(Map<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.blockstates.BlockModelDefinitionGenerator> blocks, Map<net.minecraft.world.item.Item, net.minecraft.client.renderer.item.ClientItem> items, Map<net.minecraft.resources.Identifier, net.minecraft.client.data.models.model.ModelInstance> models)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionContext()Context(Map<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.blockstates.BlockModelDefinitionGenerator> blocks, Map<net.minecraft.world.item.Item, net.minecraft.client.renderer.item.ClientItem> items, Map<net.minecraft.resources.Identifier, net.minecraft.client.data.models.model.ModelInstance> models) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionMap<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.blockstates.BlockModelDefinitionGenerator> blocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Map<net.minecraft.world.item.Item, net.minecraft.client.renderer.item.ClientItem> items()Returns the value of theitemsrecord component.Map<net.minecraft.resources.Identifier, net.minecraft.client.data.models.model.ModelInstance> models()Returns the value of themodelsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Context
public Context() -
Context
public Context(Map<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.blockstates.BlockModelDefinitionGenerator> blocks, Map<net.minecraft.world.item.Item, net.minecraft.client.renderer.item.ClientItem> items, Map<net.minecraft.resources.Identifier, net.minecraft.client.data.models.model.ModelInstance> models) Creates an instance of aContextrecord class.- Parameters:
blocks- the value for theblocksrecord componentitems- the value for theitemsrecord componentmodels- the value for themodelsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
blocks
public Map<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.blockstates.BlockModelDefinitionGenerator> blocks()Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
models
public Map<net.minecraft.resources.Identifier, net.minecraft.client.data.models.model.ModelInstance> models()Returns the value of themodelsrecord component.- Returns:
- the value of the
modelsrecord component
-