Package net.minecraft
Record Class class_8370.class_8372
java.lang.Object
java.lang.Record
net.minecraft.class_8370.class_8372
- Record Components:
random-requireAtLeastOnePlayer-playerCount-quorum-absoluteMajorityVotes-showTotals-showVoters-pickRandomOnFail-selectTopVotes-onlyApplyOptionsWithVotes-maxSelectedOptions-tieStrategy-
- Enclosing class:
class_8370
public static record class_8370.class_8372(Random random, boolean requireAtLeastOnePlayer, int playerCount, float quorum, float absoluteMajorityVotes, boolean showTotals, boolean showVoters, boolean pickRandomOnFail, boolean selectTopVotes, boolean onlyApplyOptionsWithVotes, int maxSelectedOptions, class_8383 tieStrategy)
extends Record
- Mappings:
Namespace Name official bgl$bintermediary net/minecraft/class_8370$class_8372named net/minecraft/class_8370$class_8372official aintermediary comp_1370named randomofficial bintermediary comp_1371named requireAtLeastOnePlayerofficial cintermediary comp_1372named playerCountofficial dintermediary comp_1373named quorumofficial eintermediary comp_1374named absoluteMajorityVotesofficial fintermediary comp_1375named showTotalsofficial gintermediary comp_1376named showVotersofficial hintermediary comp_1377named pickRandomOnFailofficial iintermediary comp_1378named selectTopVotesofficial jintermediary comp_1379named onlyApplyOptionsWithVotesofficial kintermediary comp_1380named maxSelectedOptionsofficial lintermediary comp_1381named tieStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theabsoluteMajorityVotesrecord component.private final intThe field for themaxSelectedOptionsrecord component.private final booleanThe field for theonlyApplyOptionsWithVotesrecord component.private final booleanThe field for thepickRandomOnFailrecord component.private final intThe field for theplayerCountrecord component.private final floatThe field for thequorumrecord component.private final RandomThe field for therandomrecord component.private final booleanThe field for therequireAtLeastOnePlayerrecord component.private final booleanThe field for theselectTopVotesrecord component.private final booleanThe field for theshowTotalsrecord component.private final booleanThe field for theshowVotersrecord component.private final class_8383The field for thetieStrategyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8372(Random random, boolean bool, int int2, float float2, float float3, boolean bool2, boolean bool3, boolean bool4, boolean bool5, boolean bool6, int int3, class_8383 class_8383) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theabsoluteMajorityVotesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxSelectedOptionsrecord component.method_50485(float float2) method_50486(int int2) method_50487(class_8383 class_8383) method_50488(boolean bool) method_50489(float float2) method_50490(boolean bool) method_50491(boolean bool) method_50492(boolean bool) method_50493(boolean bool) method_50494(boolean bool) booleanReturns the value of theonlyApplyOptionsWithVotesrecord component.booleanReturns the value of thepickRandomOnFailrecord component.intReturns the value of theplayerCountrecord component.floatquorum()Returns the value of thequorumrecord component.random()Returns the value of therandomrecord component.booleanReturns the value of therequireAtLeastOnePlayerrecord component.booleanReturns the value of theselectTopVotesrecord component.booleanReturns the value of theshowTotalsrecord component.booleanReturns the value of theshowVotersrecord component.Returns the value of thetieStrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
random
The field for therandomrecord component. -
requireAtLeastOnePlayer
private final boolean requireAtLeastOnePlayerThe field for therequireAtLeastOnePlayerrecord component. -
playerCount
private final int playerCountThe field for theplayerCountrecord component. -
quorum
private final float quorumThe field for thequorumrecord component. -
absoluteMajorityVotes
private final float absoluteMajorityVotesThe field for theabsoluteMajorityVotesrecord component. -
showTotals
private final boolean showTotalsThe field for theshowTotalsrecord component. -
showVoters
private final boolean showVotersThe field for theshowVotersrecord component. -
pickRandomOnFail
private final boolean pickRandomOnFailThe field for thepickRandomOnFailrecord component. -
selectTopVotes
private final boolean selectTopVotesThe field for theselectTopVotesrecord component. -
onlyApplyOptionsWithVotes
private final boolean onlyApplyOptionsWithVotesThe field for theonlyApplyOptionsWithVotesrecord component. -
maxSelectedOptions
private final int maxSelectedOptionsThe field for themaxSelectedOptionsrecord component. -
tieStrategy
The field for thetieStrategyrecord component.
-
-
Constructor Details
-
class_8372
public class_8372(Random random, boolean bool, int int2, float float2, float float3, boolean bool2, boolean bool3, boolean bool4, boolean bool5, boolean bool6, int int3, class_8383 class_8383)
-
-
Method Details
-
method_50488
- Mappings:
Namespace Name Mixin selector official aLbgl$b;a(Z)Lbgl$b;intermediary method_50488Lnet/minecraft/class_8370$class_8372;method_50488(Z)Lnet/minecraft/class_8370$class_8372;named method_50488Lnet/minecraft/class_8370$class_8372;method_50488(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50485
- Mappings:
Namespace Name Mixin selector official aLbgl$b;a(F)Lbgl$b;intermediary method_50485Lnet/minecraft/class_8370$class_8372;method_50485(F)Lnet/minecraft/class_8370$class_8372;named method_50485Lnet/minecraft/class_8370$class_8372;method_50485(F)Lnet/minecraft/class_8370$class_8372;
-
method_50489
- Mappings:
Namespace Name Mixin selector official bLbgl$b;b(F)Lbgl$b;intermediary method_50489Lnet/minecraft/class_8370$class_8372;method_50489(F)Lnet/minecraft/class_8370$class_8372;named method_50489Lnet/minecraft/class_8370$class_8372;method_50489(F)Lnet/minecraft/class_8370$class_8372;
-
method_50490
- Mappings:
Namespace Name Mixin selector official bLbgl$b;b(Z)Lbgl$b;intermediary method_50490Lnet/minecraft/class_8370$class_8372;method_50490(Z)Lnet/minecraft/class_8370$class_8372;named method_50490Lnet/minecraft/class_8370$class_8372;method_50490(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50491
- Mappings:
Namespace Name Mixin selector official cLbgl$b;c(Z)Lbgl$b;intermediary method_50491Lnet/minecraft/class_8370$class_8372;method_50491(Z)Lnet/minecraft/class_8370$class_8372;named method_50491Lnet/minecraft/class_8370$class_8372;method_50491(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50492
- Mappings:
Namespace Name Mixin selector official dLbgl$b;d(Z)Lbgl$b;intermediary method_50492Lnet/minecraft/class_8370$class_8372;method_50492(Z)Lnet/minecraft/class_8370$class_8372;named method_50492Lnet/minecraft/class_8370$class_8372;method_50492(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50493
- Mappings:
Namespace Name Mixin selector official eLbgl$b;e(Z)Lbgl$b;intermediary method_50493Lnet/minecraft/class_8370$class_8372;method_50493(Z)Lnet/minecraft/class_8370$class_8372;named method_50493Lnet/minecraft/class_8370$class_8372;method_50493(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50494
- Mappings:
Namespace Name Mixin selector official fLbgl$b;f(Z)Lbgl$b;intermediary method_50494Lnet/minecraft/class_8370$class_8372;method_50494(Z)Lnet/minecraft/class_8370$class_8372;named method_50494Lnet/minecraft/class_8370$class_8372;method_50494(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50486
- Mappings:
Namespace Name Mixin selector official aLbgl$b;a(I)Lbgl$b;intermediary method_50486Lnet/minecraft/class_8370$class_8372;method_50486(I)Lnet/minecraft/class_8370$class_8372;named method_50486Lnet/minecraft/class_8370$class_8372;method_50486(I)Lnet/minecraft/class_8370$class_8372;
-
method_50487
- Mappings:
Namespace Name Mixin selector official aLbgl$b;a(Lbgr;)Lbgl$b;intermediary method_50487Lnet/minecraft/class_8370$class_8372;method_50487(Lnet/minecraft/class_8383;)Lnet/minecraft/class_8370$class_8372;named method_50487Lnet/minecraft/class_8370$class_8372;method_50487(Lnet/minecraft/class_8383;)Lnet/minecraft/class_8370$class_8372;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
random
Returns the value of therandomrecord component.- Returns:
- the value of the
randomrecord component
-
requireAtLeastOnePlayer
public boolean requireAtLeastOnePlayer()Returns the value of therequireAtLeastOnePlayerrecord component.- Returns:
- the value of the
requireAtLeastOnePlayerrecord component
-
playerCount
public int playerCount()Returns the value of theplayerCountrecord component.- Returns:
- the value of the
playerCountrecord component
-
quorum
public float quorum()Returns the value of thequorumrecord component.- Returns:
- the value of the
quorumrecord component
-
absoluteMajorityVotes
public float absoluteMajorityVotes()Returns the value of theabsoluteMajorityVotesrecord component.- Returns:
- the value of the
absoluteMajorityVotesrecord component
-
showTotals
public boolean showTotals()Returns the value of theshowTotalsrecord component.- Returns:
- the value of the
showTotalsrecord component
-
showVoters
public boolean showVoters()Returns the value of theshowVotersrecord component.- Returns:
- the value of the
showVotersrecord component
-
pickRandomOnFail
public boolean pickRandomOnFail()Returns the value of thepickRandomOnFailrecord component.- Returns:
- the value of the
pickRandomOnFailrecord component
-
selectTopVotes
public boolean selectTopVotes()Returns the value of theselectTopVotesrecord component.- Returns:
- the value of the
selectTopVotesrecord component
-
onlyApplyOptionsWithVotes
public boolean onlyApplyOptionsWithVotes()Returns the value of theonlyApplyOptionsWithVotesrecord component.- Returns:
- the value of the
onlyApplyOptionsWithVotesrecord component
-
maxSelectedOptions
public int maxSelectedOptions()Returns the value of themaxSelectedOptionsrecord component.- Returns:
- the value of the
maxSelectedOptionsrecord component
-
tieStrategy
Returns the value of thetieStrategyrecord component.- Returns:
- the value of the
tieStrategyrecord component
-