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$b
intermediary net/minecraft/class_8370$class_8372
named net/minecraft/class_8370$class_8372
official a
intermediary comp_1370
named random
official b
intermediary comp_1371
named requireAtLeastOnePlayer
official c
intermediary comp_1372
named playerCount
official d
intermediary comp_1373
named quorum
official e
intermediary comp_1374
named absoluteMajorityVotes
official f
intermediary comp_1375
named showTotals
official g
intermediary comp_1376
named showVoters
official h
intermediary comp_1377
named pickRandomOnFail
official i
intermediary comp_1378
named selectTopVotes
official j
intermediary comp_1379
named onlyApplyOptionsWithVotes
official k
intermediary comp_1380
named maxSelectedOptions
official l
intermediary comp_1381
named tieStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float
The field for theabsoluteMajorityVotes
record component.private final int
The field for themaxSelectedOptions
record component.private final boolean
The field for theonlyApplyOptionsWithVotes
record component.private final boolean
The field for thepickRandomOnFail
record component.private final int
The field for theplayerCount
record component.private final float
The field for thequorum
record component.private final Random
The field for therandom
record component.private final boolean
The field for therequireAtLeastOnePlayer
record component.private final boolean
The field for theselectTopVotes
record component.private final boolean
The field for theshowTotals
record component.private final boolean
The field for theshowVoters
record component.private final class_8383
The field for thetieStrategy
record 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 TypeMethodDescriptionfloat
Returns the value of theabsoluteMajorityVotes
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxSelectedOptions
record 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) boolean
Returns the value of theonlyApplyOptionsWithVotes
record component.boolean
Returns the value of thepickRandomOnFail
record component.int
Returns the value of theplayerCount
record component.float
quorum()
Returns the value of thequorum
record component.random()
Returns the value of therandom
record component.boolean
Returns the value of therequireAtLeastOnePlayer
record component.boolean
Returns the value of theselectTopVotes
record component.boolean
Returns the value of theshowTotals
record component.boolean
Returns the value of theshowVoters
record component.Returns the value of thetieStrategy
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
random
The field for therandom
record component. -
requireAtLeastOnePlayer
private final boolean requireAtLeastOnePlayerThe field for therequireAtLeastOnePlayer
record component. -
playerCount
private final int playerCountThe field for theplayerCount
record component. -
quorum
private final float quorumThe field for thequorum
record component. -
absoluteMajorityVotes
private final float absoluteMajorityVotesThe field for theabsoluteMajorityVotes
record component. -
showTotals
private final boolean showTotalsThe field for theshowTotals
record component. -
showVoters
private final boolean showVotersThe field for theshowVoters
record component. -
pickRandomOnFail
private final boolean pickRandomOnFailThe field for thepickRandomOnFail
record component. -
selectTopVotes
private final boolean selectTopVotesThe field for theselectTopVotes
record component. -
onlyApplyOptionsWithVotes
private final boolean onlyApplyOptionsWithVotesThe field for theonlyApplyOptionsWithVotes
record component. -
maxSelectedOptions
private final int maxSelectedOptionsThe field for themaxSelectedOptions
record component. -
tieStrategy
The field for thetieStrategy
record 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 a
Lbgl$b;a(Z)Lbgl$b;
intermediary method_50488
Lnet/minecraft/class_8370$class_8372;method_50488(Z)Lnet/minecraft/class_8370$class_8372;
named method_50488
Lnet/minecraft/class_8370$class_8372;method_50488(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50485
- Mappings:
Namespace Name Mixin selector official a
Lbgl$b;a(F)Lbgl$b;
intermediary method_50485
Lnet/minecraft/class_8370$class_8372;method_50485(F)Lnet/minecraft/class_8370$class_8372;
named method_50485
Lnet/minecraft/class_8370$class_8372;method_50485(F)Lnet/minecraft/class_8370$class_8372;
-
method_50489
- Mappings:
Namespace Name Mixin selector official b
Lbgl$b;b(F)Lbgl$b;
intermediary method_50489
Lnet/minecraft/class_8370$class_8372;method_50489(F)Lnet/minecraft/class_8370$class_8372;
named method_50489
Lnet/minecraft/class_8370$class_8372;method_50489(F)Lnet/minecraft/class_8370$class_8372;
-
method_50490
- Mappings:
Namespace Name Mixin selector official b
Lbgl$b;b(Z)Lbgl$b;
intermediary method_50490
Lnet/minecraft/class_8370$class_8372;method_50490(Z)Lnet/minecraft/class_8370$class_8372;
named method_50490
Lnet/minecraft/class_8370$class_8372;method_50490(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50491
- Mappings:
Namespace Name Mixin selector official c
Lbgl$b;c(Z)Lbgl$b;
intermediary method_50491
Lnet/minecraft/class_8370$class_8372;method_50491(Z)Lnet/minecraft/class_8370$class_8372;
named method_50491
Lnet/minecraft/class_8370$class_8372;method_50491(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50492
- Mappings:
Namespace Name Mixin selector official d
Lbgl$b;d(Z)Lbgl$b;
intermediary method_50492
Lnet/minecraft/class_8370$class_8372;method_50492(Z)Lnet/minecraft/class_8370$class_8372;
named method_50492
Lnet/minecraft/class_8370$class_8372;method_50492(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50493
- Mappings:
Namespace Name Mixin selector official e
Lbgl$b;e(Z)Lbgl$b;
intermediary method_50493
Lnet/minecraft/class_8370$class_8372;method_50493(Z)Lnet/minecraft/class_8370$class_8372;
named method_50493
Lnet/minecraft/class_8370$class_8372;method_50493(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50494
- Mappings:
Namespace Name Mixin selector official f
Lbgl$b;f(Z)Lbgl$b;
intermediary method_50494
Lnet/minecraft/class_8370$class_8372;method_50494(Z)Lnet/minecraft/class_8370$class_8372;
named method_50494
Lnet/minecraft/class_8370$class_8372;method_50494(Z)Lnet/minecraft/class_8370$class_8372;
-
method_50486
- Mappings:
Namespace Name Mixin selector official a
Lbgl$b;a(I)Lbgl$b;
intermediary method_50486
Lnet/minecraft/class_8370$class_8372;method_50486(I)Lnet/minecraft/class_8370$class_8372;
named method_50486
Lnet/minecraft/class_8370$class_8372;method_50486(I)Lnet/minecraft/class_8370$class_8372;
-
method_50487
- Mappings:
Namespace Name Mixin selector official a
Lbgl$b;a(Lbgr;)Lbgl$b;
intermediary method_50487
Lnet/minecraft/class_8370$class_8372;method_50487(Lnet/minecraft/class_8383;)Lnet/minecraft/class_8370$class_8372;
named method_50487
Lnet/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 therandom
record component.- Returns:
- the value of the
random
record component
-
requireAtLeastOnePlayer
public boolean requireAtLeastOnePlayer()Returns the value of therequireAtLeastOnePlayer
record component.- Returns:
- the value of the
requireAtLeastOnePlayer
record component
-
playerCount
public int playerCount()Returns the value of theplayerCount
record component.- Returns:
- the value of the
playerCount
record component
-
quorum
public float quorum()Returns the value of thequorum
record component.- Returns:
- the value of the
quorum
record component
-
absoluteMajorityVotes
public float absoluteMajorityVotes()Returns the value of theabsoluteMajorityVotes
record component.- Returns:
- the value of the
absoluteMajorityVotes
record component
-
showTotals
public boolean showTotals()Returns the value of theshowTotals
record component.- Returns:
- the value of the
showTotals
record component
-
showVoters
public boolean showVoters()Returns the value of theshowVoters
record component.- Returns:
- the value of the
showVoters
record component
-
pickRandomOnFail
public boolean pickRandomOnFail()Returns the value of thepickRandomOnFail
record component.- Returns:
- the value of the
pickRandomOnFail
record component
-
selectTopVotes
public boolean selectTopVotes()Returns the value of theselectTopVotes
record component.- Returns:
- the value of the
selectTopVotes
record component
-
onlyApplyOptionsWithVotes
public boolean onlyApplyOptionsWithVotes()Returns the value of theonlyApplyOptionsWithVotes
record component.- Returns:
- the value of the
onlyApplyOptionsWithVotes
record component
-
maxSelectedOptions
public int maxSelectedOptions()Returns the value of themaxSelectedOptions
record component.- Returns:
- the value of the
maxSelectedOptions
record component
-
tieStrategy
Returns the value of thetieStrategy
record component.- Returns:
- the value of the
tieStrategy
record component
-