Package net.minecraft
Record Class class_8387
java.lang.Object
java.lang.Record
net.minecraft.class_8387
- Record Components:
approved-pending-votes-totalProposalCount-
public record class_8387(List<class_8291> approved, Map<UUID,class_8376> pending, class_8374 votes, int totalProposalCount)
extends Record
- Mappings:
Namespace Name official bgtintermediary net/minecraft/class_8387named net/minecraft/class_8387official bintermediary comp_1411named approvedofficial cintermediary comp_1412named pendingofficial dintermediary comp_1413named votesofficial eintermediary comp_1414named totalProposalCount
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<class_8291>The field for theapprovedrecord component.static final com.mojang.serialization.Codec<class_8387>private final Map<UUID,class_8376> The field for thependingrecord component.private final intThe field for thetotalProposalCountrecord component.private final class_8374The field for thevotesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8387(List<class_8291> list, Map<UUID, class_8376> map, class_8374 class_8374, int int2) -
Method Summary
Modifier and TypeMethodDescriptionapproved()Returns the value of theapprovedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static class_8387method_50580(Stream<RegistryEntry.Reference<class_8289>> stream, Map<UUID, class_8376> map, class_8374 class_8374, int int2) pending()Returns the value of thependingrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalProposalCountrecord component.votes()Returns the value of thevotesrecord component.
-
Field Details
-
approved
The field for theapprovedrecord component. -
pending
The field for thependingrecord component. -
votes
The field for thevotesrecord component. -
totalProposalCount
private final int totalProposalCountThe field for thetotalProposalCountrecord component. -
field_44024
- Mappings:
Namespace Name Mixin selector official aLbgt;a:Lcom/mojang/serialization/Codec;intermediary field_44024Lnet/minecraft/class_8387;field_44024:Lcom/mojang/serialization/Codec;named field_44024Lnet/minecraft/class_8387;field_44024:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_8387
public class_8387() -
class_8387
-
-
Method Details
-
method_50580
public static class_8387 method_50580(Stream<RegistryEntry.Reference<class_8289>> stream, Map<UUID, class_8376> map, class_8374 class_8374, int int2) - Mappings:
Namespace Name Mixin selector official aLbgt;a(Ljava/util/stream/Stream;Ljava/util/Map;Lbgn;I)Lbgt;intermediary method_50580Lnet/minecraft/class_8387;method_50580(Ljava/util/stream/Stream;Ljava/util/Map;Lnet/minecraft/class_8374;I)Lnet/minecraft/class_8387;named method_50580Lnet/minecraft/class_8387;method_50580(Ljava/util/stream/Stream;Ljava/util/Map;Lnet/minecraft/class_8374;I)Lnet/minecraft/class_8387;
-
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 '=='. -
approved
Returns the value of theapprovedrecord component.- Returns:
- the value of the
approvedrecord component
-
pending
Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
votes
Returns the value of thevotesrecord component.- Returns:
- the value of the
votesrecord component
-
totalProposalCount
public int totalProposalCount()Returns the value of thetotalProposalCountrecord component.- Returns:
- the value of the
totalProposalCountrecord component
-