Record Class VanillaBlockCodecs.LayeredCauldron
java.lang.Object
java.lang.Record
net.rebel459.unified.api.registry.VanillaBlockCodecs.LayeredCauldron
- Enclosing class:
VanillaBlockCodecs
public static record VanillaBlockCodecs.LayeredCauldron(net.minecraft.world.level.biome.Biome.Precipitation precipitation, net.minecraft.core.cauldron.CauldronInteraction.Dispatcher interactions)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VanillaBlockCodecs.LayeredCauldron> -
Constructor Summary
ConstructorsConstructorDescriptionLayeredCauldron(net.minecraft.world.level.biome.Biome.Precipitation precipitation, net.minecraft.core.cauldron.CauldronInteraction.Dispatcher interactions) Creates an instance of aLayeredCauldronrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.cauldron.CauldronInteraction.DispatcherReturns the value of theinteractionsrecord component.net.minecraft.world.level.biome.Biome.PrecipitationReturns the value of theprecipitationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
LayeredCauldron
public LayeredCauldron(net.minecraft.world.level.biome.Biome.Precipitation precipitation, net.minecraft.core.cauldron.CauldronInteraction.Dispatcher interactions) Creates an instance of aLayeredCauldronrecord class.- Parameters:
precipitation- the value for theprecipitationrecord componentinteractions- the value for theinteractionsrecord 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). -
precipitation
public net.minecraft.world.level.biome.Biome.Precipitation precipitation()Returns the value of theprecipitationrecord component.- Returns:
- the value of the
precipitationrecord component
-
interactions
public net.minecraft.core.cauldron.CauldronInteraction.Dispatcher interactions()Returns the value of theinteractionsrecord component.- Returns:
- the value of the
interactionsrecord component
-