Record Class FabricDatagenProvider.BlockModelContext
java.lang.Object
java.lang.Record
net.rebel459.unified.fabric.datagen.FabricDatagenProvider.BlockModelContext
- Enclosing class:
FabricDatagenProvider
public static record FabricDatagenProvider.BlockModelContext(net.minecraft.resources.Identifier id, net.minecraft.world.level.block.Block block, net.minecraft.client.data.models.BlockModelGenerators generator, Set<net.minecraft.world.level.block.Block> familyBases, Function<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.BlockModelGenerators.BlockFamilyProvider> familyProvider)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockModelContext(net.minecraft.resources.Identifier id, net.minecraft.world.level.block.Block block, net.minecraft.client.data.models.BlockModelGenerators generator, Set<net.minecraft.world.level.block.Block> familyBases, Function<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.BlockModelGenerators.BlockFamilyProvider> familyProvider) Creates an instance of aBlockModelContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.Blockblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.data.models.BlockModelGenerators.BlockFamilyProviderfamily(net.minecraft.world.level.block.Block base) Set<net.minecraft.world.level.block.Block> Returns the value of thefamilyBasesrecord component.Function<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.BlockModelGenerators.BlockFamilyProvider> Returns the value of thefamilyProviderrecord component.net.minecraft.client.data.models.BlockModelGeneratorsReturns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockModelContext
public BlockModelContext(net.minecraft.resources.Identifier id, net.minecraft.world.level.block.Block block, net.minecraft.client.data.models.BlockModelGenerators generator, Set<net.minecraft.world.level.block.Block> familyBases, Function<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.BlockModelGenerators.BlockFamilyProvider> familyProvider) Creates an instance of aBlockModelContextrecord class.- Parameters:
id- the value for theidrecord componentblock- the value for theblockrecord componentgenerator- the value for thegeneratorrecord componentfamilyBases- the value for thefamilyBasesrecord componentfamilyProvider- the value for thefamilyProviderrecord component
-
-
Method Details
-
family
public net.minecraft.client.data.models.BlockModelGenerators.BlockFamilyProvider family(net.minecraft.world.level.block.Block base) -
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). -
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
block
public net.minecraft.world.level.block.Block block()Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
generator
public net.minecraft.client.data.models.BlockModelGenerators generator()Returns the value of thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-
familyBases
Returns the value of thefamilyBasesrecord component.- Returns:
- the value of the
familyBasesrecord component
-
familyProvider
public Function<net.minecraft.world.level.block.Block, net.minecraft.client.data.models.BlockModelGenerators.BlockFamilyProvider> familyProvider()Returns the value of thefamilyProviderrecord component.- Returns:
- the value of the
familyProviderrecord component
-