Record Class WeightedBlockStateProvider.Entry
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.gen.state.provider.impl.WeightedBlockStateProvider.Entry
- Record Components:
state- The block info to return.weight- The relative probability weight of this entry.
- Enclosing class:
WeightedBlockStateProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<WeightedBlockStateProvider.Entry> The codec for serializing and deserializing a weighted entry. -
Constructor Summary
Constructors -
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.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.intweight()Returns the value of theweightrecord component.
-
Field Details
-
CODEC
The codec for serializing and deserializing a weighted entry.
-
-
Constructor Details
-
Entry
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
state
-
weight
-