Record Class VanillaBlockCodecs.AttachedStem
java.lang.Object
java.lang.Record
net.rebel459.unified.api.registry.VanillaBlockCodecs.AttachedStem
- Enclosing class:
VanillaBlockCodecs
public static record VanillaBlockCodecs.AttachedStem(net.minecraft.world.level.block.Block stem, net.minecraft.world.level.block.Block fruit, net.minecraft.world.item.Item seed, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> supportBlocks)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VanillaBlockCodecs.AttachedStem> -
Constructor Summary
ConstructorsConstructorDescriptionAttachedStem(net.minecraft.world.level.block.Block stem, net.minecraft.world.level.block.Block fruit, net.minecraft.world.item.Item seed, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> supportBlocks) Creates an instance of aAttachedStemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.level.block.Blockfruit()Returns the value of thefruitrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.Itemseed()Returns the value of theseedrecord component.net.minecraft.world.level.block.Blockstem()Returns the value of thestemrecord component.net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> Returns the value of thesupportBlocksrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
AttachedStem
public AttachedStem(net.minecraft.world.level.block.Block stem, net.minecraft.world.level.block.Block fruit, net.minecraft.world.item.Item seed, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> supportBlocks) Creates an instance of aAttachedStemrecord class.- Parameters:
stem- the value for thestemrecord componentfruit- the value for thefruitrecord componentseed- the value for theseedrecord componentsupportBlocks- the value for thesupportBlocksrecord 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). -
stem
public net.minecraft.world.level.block.Block stem()Returns the value of thestemrecord component.- Returns:
- the value of the
stemrecord component
-
fruit
public net.minecraft.world.level.block.Block fruit()Returns the value of thefruitrecord component.- Returns:
- the value of the
fruitrecord component
-
seed
public net.minecraft.world.item.Item seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
supportBlocks
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> supportBlocks()Returns the value of thesupportBlocksrecord component.- Returns:
- the value of the
supportBlocksrecord component
-