Record Class VanillaBlockCodecs.NetherFungus
java.lang.Object
java.lang.Record
net.rebel459.unified.api.registry.VanillaBlockCodecs.NetherFungus
- Enclosing class:
VanillaBlockCodecs
public static record VanillaBlockCodecs.NetherFungus(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.Feature> feature, net.minecraft.world.level.block.Block requiredBlock, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> supportBlocks)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VanillaBlockCodecs.NetherFungus> -
Constructor Summary
ConstructorsConstructorDescriptionNetherFungus(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.Feature> feature, net.minecraft.world.level.block.Block requiredBlock, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> supportBlocks) Creates an instance of aNetherFungusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.Feature> feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.world.level.block.BlockReturns the value of therequiredBlockrecord 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
-
NetherFungus
public NetherFungus(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.Feature> feature, net.minecraft.world.level.block.Block requiredBlock, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> supportBlocks) Creates an instance of aNetherFungusrecord class.- Parameters:
feature- the value for thefeaturerecord componentrequiredBlock- the value for therequiredBlockrecord 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). -
feature
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.Feature> feature()Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-
requiredBlock
public net.minecraft.world.level.block.Block requiredBlock()Returns the value of therequiredBlockrecord component.- Returns:
- the value of the
requiredBlockrecord 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
-