Package net.minecraft
Record Class class_8376.class_8379
java.lang.Object
java.lang.Record
net.minecraft.class_8376.class_8379
- Record Components:
random
-newVoteChancePerTick
-optionsPerApproveVote
-optionsPerRepealVote
-durationMinutes
-extraOptionChance
-maxExtraOptions
-voteCost
-alwaysAddOptOutVote
-maxApproveVoteCount
-maxRepealVoteCount
-repealVoteChance
-
- Enclosing class:
class_8376
public static record class_8376.class_8379(Random random, float newVoteChancePerTick, IntProvider optionsPerApproveVote, IntProvider optionsPerRepealVote, IntProvider durationMinutes, float extraOptionChance, int maxExtraOptions, List<class_8390.class_8391> voteCost, boolean alwaysAddOptOutVote, int maxApproveVoteCount, int maxRepealVoteCount, float repealVoteChance)
extends Record
- Mappings:
Namespace Name official bgp$c
intermediary net/minecraft/class_8376$class_8379
named net/minecraft/class_8376$class_8379
official a
intermediary comp_1392
named random
official b
intermediary comp_1393
named newVoteChancePerTick
official c
intermediary comp_1394
named optionsPerApproveVote
official d
intermediary comp_1395
named optionsPerRepealVote
official e
intermediary comp_1396
named durationMinutes
official f
intermediary comp_1397
named extraOptionChance
official g
intermediary comp_1398
named maxExtraOptions
official h
intermediary comp_1399
named voteCost
official i
intermediary comp_1400
named alwaysAddOptOutVote
official j
intermediary comp_1401
named maxApproveVoteCount
official k
intermediary comp_1402
named maxRepealVoteCount
official l
intermediary comp_1403
named repealVoteChance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for thealwaysAddOptOutVote
record component.private final IntProvider
The field for thedurationMinutes
record component.private final float
The field for theextraOptionChance
record component.private final int
The field for themaxApproveVoteCount
record component.private final int
The field for themaxExtraOptions
record component.private final int
The field for themaxRepealVoteCount
record component.private final float
The field for thenewVoteChancePerTick
record component.private final IntProvider
The field for theoptionsPerApproveVote
record component.private final IntProvider
The field for theoptionsPerRepealVote
record component.private final Random
The field for therandom
record component.private final float
The field for therepealVoteChance
record component.private final List<class_8390.class_8391>
The field for thevoteCost
record component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8379
(Random random, float float2, IntProvider intProvider, IntProvider intProvider2, IntProvider intProvider3, float float3, int int2, List<class_8390.class_8391> list, boolean bool, int int3, int int4, float float4) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thealwaysAddOptOutVote
record component.Returns the value of thedurationMinutes
record component.final boolean
Indicates whether some other object is "equal to" this one.float
Returns the value of theextraOptionChance
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxApproveVoteCount
record component.int
Returns the value of themaxExtraOptions
record component.int
Returns the value of themaxRepealVoteCount
record component.int
static class_8376.class_8379
method_50547
(Random random) boolean
boolean
boolean
int
int
float
Returns the value of thenewVoteChancePerTick
record component.Returns the value of theoptionsPerApproveVote
record component.Returns the value of theoptionsPerRepealVote
record component.random()
Returns the value of therandom
record component.float
Returns the value of therepealVoteChance
record component.final String
toString()
Returns a string representation of this record class.voteCost()
Returns the value of thevoteCost
record component.
-
Field Details
-
random
The field for therandom
record component. -
newVoteChancePerTick
private final float newVoteChancePerTickThe field for thenewVoteChancePerTick
record component. -
optionsPerApproveVote
The field for theoptionsPerApproveVote
record component. -
optionsPerRepealVote
The field for theoptionsPerRepealVote
record component. -
durationMinutes
The field for thedurationMinutes
record component. -
extraOptionChance
private final float extraOptionChanceThe field for theextraOptionChance
record component. -
maxExtraOptions
private final int maxExtraOptionsThe field for themaxExtraOptions
record component. -
voteCost
The field for thevoteCost
record component. -
alwaysAddOptOutVote
private final boolean alwaysAddOptOutVoteThe field for thealwaysAddOptOutVote
record component. -
maxApproveVoteCount
private final int maxApproveVoteCountThe field for themaxApproveVoteCount
record component. -
maxRepealVoteCount
private final int maxRepealVoteCountThe field for themaxRepealVoteCount
record component. -
repealVoteChance
private final float repealVoteChanceThe field for therepealVoteChance
record component.
-
-
Constructor Details
-
class_8379
public class_8379(Random random, float float2, IntProvider intProvider, IntProvider intProvider2, IntProvider intProvider3, float float3, int int2, List<class_8390.class_8391> list, boolean bool, int int3, int int4, float float4)
-
-
Method Details
-
method_50547
- Mappings:
Namespace Name Mixin selector official a
Lbgp$c;a(Lapj;)Lbgp$c;
intermediary method_50547
Lnet/minecraft/class_8376$class_8379;method_50547(Lnet/minecraft/class_5819;)Lnet/minecraft/class_8376$class_8379;
named method_50547
Lnet/minecraft/class_8376$class_8379;method_50547(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/class_8376$class_8379;
-
method_50546
public int method_50546()- Mappings:
Namespace Name Mixin selector official a
Lbgp$c;a()I
intermediary method_50546
Lnet/minecraft/class_8376$class_8379;method_50546()I
named method_50546
Lnet/minecraft/class_8376$class_8379;method_50546()I
-
method_50548
public boolean method_50548()- Mappings:
Namespace Name Mixin selector official b
Lbgp$c;b()Z
intermediary method_50548
Lnet/minecraft/class_8376$class_8379;method_50548()Z
named method_50548
Lnet/minecraft/class_8376$class_8379;method_50548()Z
-
method_50549
public boolean method_50549()- Mappings:
Namespace Name Mixin selector official c
Lbgp$c;c()Z
intermediary method_50549
Lnet/minecraft/class_8376$class_8379;method_50549()Z
named method_50549
Lnet/minecraft/class_8376$class_8379;method_50549()Z
-
method_50550
public boolean method_50550()- Mappings:
Namespace Name Mixin selector official d
Lbgp$c;d()Z
intermediary method_50550
Lnet/minecraft/class_8376$class_8379;method_50550()Z
named method_50550
Lnet/minecraft/class_8376$class_8379;method_50550()Z
-
method_50551
public int method_50551()- Mappings:
Namespace Name Mixin selector official e
Lbgp$c;e()I
intermediary method_50551
Lnet/minecraft/class_8376$class_8379;method_50551()I
named method_50551
Lnet/minecraft/class_8376$class_8379;method_50551()I
-
method_50552
public int method_50552()- Mappings:
Namespace Name Mixin selector official f
Lbgp$c;f()I
intermediary method_50552
Lnet/minecraft/class_8376$class_8379;method_50552()I
named method_50552
Lnet/minecraft/class_8376$class_8379;method_50552()I
-
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
-
newVoteChancePerTick
public float newVoteChancePerTick()Returns the value of thenewVoteChancePerTick
record component.- Returns:
- the value of the
newVoteChancePerTick
record component
-
optionsPerApproveVote
Returns the value of theoptionsPerApproveVote
record component.- Returns:
- the value of the
optionsPerApproveVote
record component
-
optionsPerRepealVote
Returns the value of theoptionsPerRepealVote
record component.- Returns:
- the value of the
optionsPerRepealVote
record component
-
durationMinutes
Returns the value of thedurationMinutes
record component.- Returns:
- the value of the
durationMinutes
record component
-
extraOptionChance
public float extraOptionChance()Returns the value of theextraOptionChance
record component.- Returns:
- the value of the
extraOptionChance
record component
-
maxExtraOptions
public int maxExtraOptions()Returns the value of themaxExtraOptions
record component.- Returns:
- the value of the
maxExtraOptions
record component
-
voteCost
Returns the value of thevoteCost
record component.- Returns:
- the value of the
voteCost
record component
-
alwaysAddOptOutVote
public boolean alwaysAddOptOutVote()Returns the value of thealwaysAddOptOutVote
record component.- Returns:
- the value of the
alwaysAddOptOutVote
record component
-
maxApproveVoteCount
public int maxApproveVoteCount()Returns the value of themaxApproveVoteCount
record component.- Returns:
- the value of the
maxApproveVoteCount
record component
-
maxRepealVoteCount
public int maxRepealVoteCount()Returns the value of themaxRepealVoteCount
record component.- Returns:
- the value of the
maxRepealVoteCount
record component
-
repealVoteChance
public float repealVoteChance()Returns the value of therepealVoteChance
record component.- Returns:
- the value of the
repealVoteChance
record component
-