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$cintermediary net/minecraft/class_8376$class_8379named net/minecraft/class_8376$class_8379official aintermediary comp_1392named randomofficial bintermediary comp_1393named newVoteChancePerTickofficial cintermediary comp_1394named optionsPerApproveVoteofficial dintermediary comp_1395named optionsPerRepealVoteofficial eintermediary comp_1396named durationMinutesofficial fintermediary comp_1397named extraOptionChanceofficial gintermediary comp_1398named maxExtraOptionsofficial hintermediary comp_1399named voteCostofficial iintermediary comp_1400named alwaysAddOptOutVoteofficial jintermediary comp_1401named maxApproveVoteCountofficial kintermediary comp_1402named maxRepealVoteCountofficial lintermediary comp_1403named repealVoteChance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thealwaysAddOptOutVoterecord component.private final IntProviderThe field for thedurationMinutesrecord component.private final floatThe field for theextraOptionChancerecord component.private final intThe field for themaxApproveVoteCountrecord component.private final intThe field for themaxExtraOptionsrecord component.private final intThe field for themaxRepealVoteCountrecord component.private final floatThe field for thenewVoteChancePerTickrecord component.private final IntProviderThe field for theoptionsPerApproveVoterecord component.private final IntProviderThe field for theoptionsPerRepealVoterecord component.private final RandomThe field for therandomrecord component.private final floatThe field for therepealVoteChancerecord component.private final List<class_8390.class_8391>The field for thevoteCostrecord 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 TypeMethodDescriptionbooleanReturns the value of thealwaysAddOptOutVoterecord component.Returns the value of thedurationMinutesrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theextraOptionChancerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxApproveVoteCountrecord component.intReturns the value of themaxExtraOptionsrecord component.intReturns the value of themaxRepealVoteCountrecord component.intstatic class_8376.class_8379method_50547(Random random) booleanbooleanbooleanintintfloatReturns the value of thenewVoteChancePerTickrecord component.Returns the value of theoptionsPerApproveVoterecord component.Returns the value of theoptionsPerRepealVoterecord component.random()Returns the value of therandomrecord component.floatReturns the value of therepealVoteChancerecord component.final StringtoString()Returns a string representation of this record class.voteCost()Returns the value of thevoteCostrecord component.
-
Field Details
-
random
The field for therandomrecord component. -
newVoteChancePerTick
private final float newVoteChancePerTickThe field for thenewVoteChancePerTickrecord component. -
optionsPerApproveVote
The field for theoptionsPerApproveVoterecord component. -
optionsPerRepealVote
The field for theoptionsPerRepealVoterecord component. -
durationMinutes
The field for thedurationMinutesrecord component. -
extraOptionChance
private final float extraOptionChanceThe field for theextraOptionChancerecord component. -
maxExtraOptions
private final int maxExtraOptionsThe field for themaxExtraOptionsrecord component. -
voteCost
The field for thevoteCostrecord component. -
alwaysAddOptOutVote
private final boolean alwaysAddOptOutVoteThe field for thealwaysAddOptOutVoterecord component. -
maxApproveVoteCount
private final int maxApproveVoteCountThe field for themaxApproveVoteCountrecord component. -
maxRepealVoteCount
private final int maxRepealVoteCountThe field for themaxRepealVoteCountrecord component. -
repealVoteChance
private final float repealVoteChanceThe field for therepealVoteChancerecord 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 aLbgp$c;a(Lapj;)Lbgp$c;intermediary method_50547Lnet/minecraft/class_8376$class_8379;method_50547(Lnet/minecraft/class_5819;)Lnet/minecraft/class_8376$class_8379;named method_50547Lnet/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 aLbgp$c;a()Iintermediary method_50546Lnet/minecraft/class_8376$class_8379;method_50546()Inamed method_50546Lnet/minecraft/class_8376$class_8379;method_50546()I
-
method_50548
public boolean method_50548()- Mappings:
Namespace Name Mixin selector official bLbgp$c;b()Zintermediary method_50548Lnet/minecraft/class_8376$class_8379;method_50548()Znamed method_50548Lnet/minecraft/class_8376$class_8379;method_50548()Z
-
method_50549
public boolean method_50549()- Mappings:
Namespace Name Mixin selector official cLbgp$c;c()Zintermediary method_50549Lnet/minecraft/class_8376$class_8379;method_50549()Znamed method_50549Lnet/minecraft/class_8376$class_8379;method_50549()Z
-
method_50550
public boolean method_50550()- Mappings:
Namespace Name Mixin selector official dLbgp$c;d()Zintermediary method_50550Lnet/minecraft/class_8376$class_8379;method_50550()Znamed method_50550Lnet/minecraft/class_8376$class_8379;method_50550()Z
-
method_50551
public int method_50551()- Mappings:
Namespace Name Mixin selector official eLbgp$c;e()Iintermediary method_50551Lnet/minecraft/class_8376$class_8379;method_50551()Inamed method_50551Lnet/minecraft/class_8376$class_8379;method_50551()I
-
method_50552
public int method_50552()- Mappings:
Namespace Name Mixin selector official fLbgp$c;f()Iintermediary method_50552Lnet/minecraft/class_8376$class_8379;method_50552()Inamed method_50552Lnet/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 therandomrecord component.- Returns:
- the value of the
randomrecord component
-
newVoteChancePerTick
public float newVoteChancePerTick()Returns the value of thenewVoteChancePerTickrecord component.- Returns:
- the value of the
newVoteChancePerTickrecord component
-
optionsPerApproveVote
Returns the value of theoptionsPerApproveVoterecord component.- Returns:
- the value of the
optionsPerApproveVoterecord component
-
optionsPerRepealVote
Returns the value of theoptionsPerRepealVoterecord component.- Returns:
- the value of the
optionsPerRepealVoterecord component
-
durationMinutes
Returns the value of thedurationMinutesrecord component.- Returns:
- the value of the
durationMinutesrecord component
-
extraOptionChance
public float extraOptionChance()Returns the value of theextraOptionChancerecord component.- Returns:
- the value of the
extraOptionChancerecord component
-
maxExtraOptions
public int maxExtraOptions()Returns the value of themaxExtraOptionsrecord component.- Returns:
- the value of the
maxExtraOptionsrecord component
-
voteCost
Returns the value of thevoteCostrecord component.- Returns:
- the value of the
voteCostrecord component
-
alwaysAddOptOutVote
public boolean alwaysAddOptOutVote()Returns the value of thealwaysAddOptOutVoterecord component.- Returns:
- the value of the
alwaysAddOptOutVoterecord component
-
maxApproveVoteCount
public int maxApproveVoteCount()Returns the value of themaxApproveVoteCountrecord component.- Returns:
- the value of the
maxApproveVoteCountrecord component
-
maxRepealVoteCount
public int maxRepealVoteCount()Returns the value of themaxRepealVoteCountrecord component.- Returns:
- the value of the
maxRepealVoteCountrecord component
-
repealVoteChance
public float repealVoteChance()Returns the value of therepealVoteChancerecord component.- Returns:
- the value of the
repealVoteChancerecord component
-