Record Class FusionOdds
java.lang.Object
java.lang.Record
dev.yowsef.stealablock.api.fusion.FusionOdds
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of thecurrentMutationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themutationRollWeightsrecord component.intReturns the value of therequiredBlocksrecord component.@NotNull StringReturns the value of thesourceBlockIdrecord component.doubleReturns the value of thesuccessChancerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FusionOdds
public FusionOdds(@NotNull @NotNull String sourceBlockId, @NotNull @NotNull String currentMutationId, int requiredBlocks, double successChance, @NotNull @NotNull Map<String, Double> mutationRollWeights) Creates an instance of aFusionOddsrecord class.- Parameters:
sourceBlockId- the value for thesourceBlockIdrecord componentcurrentMutationId- the value for thecurrentMutationIdrecord componentrequiredBlocks- the value for therequiredBlocksrecord componentsuccessChance- the value for thesuccessChancerecord componentmutationRollWeights- the value for themutationRollWeightsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sourceBlockId
Returns the value of thesourceBlockIdrecord component.- Returns:
- the value of the
sourceBlockIdrecord component
-
currentMutationId
Returns the value of thecurrentMutationIdrecord component.- Returns:
- the value of the
currentMutationIdrecord component
-
requiredBlocks
public int requiredBlocks()Returns the value of therequiredBlocksrecord component.- Returns:
- the value of the
requiredBlocksrecord component
-
successChance
public double successChance()Returns the value of thesuccessChancerecord component.- Returns:
- the value of the
successChancerecord component
-
mutationRollWeights
-