Package net.minecraftforge.network
Record Class NetworkContext.NetworkMismatchData
java.lang.Object
java.lang.Record
net.minecraftforge.network.NetworkContext.NetworkMismatchData
- Enclosing class:
- NetworkContext
@Internal
public static record NetworkContext.NetworkMismatchData(Map<ResourceLocation,NetworkContext.NetworkMismatchData.Version> mismatched, Set<ResourceLocation> missing, boolean fromServer, Map<String,ModVersions.Info> mods)
extends Record  
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thefromServerrecord component.private final Map<ResourceLocation, NetworkContext.NetworkMismatchData.Version> The field for themismatchedrecord component.private final Set<ResourceLocation> The field for themissingrecord component.private final Map<String, ModVersions.Info> The field for themodsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionNetworkMismatchData(Map<ResourceLocation, NetworkContext.NetworkMismatchData.Version> mismatched, Set<ResourceLocation> missing, boolean fromServer, Map<String, ModVersions.Info> mods) Creates an instance of aNetworkMismatchDatarecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefromServerrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themismatchedrecord component.missing()Returns the value of themissingrecord component.mods()Returns the value of themodsrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
mismatchedThe field for themismatchedrecord component.
- 
missingThe field for themissingrecord component.
- 
fromServerprivate final boolean fromServerThe field for thefromServerrecord component.
- 
modsThe field for themodsrecord component.
 
- 
- 
Constructor Details- 
NetworkMismatchDatapublic NetworkMismatchData(Map<ResourceLocation, NetworkContext.NetworkMismatchData.Version> mismatched, Set<ResourceLocation> missing, boolean fromServer, Map<String, ModVersions.Info> mods) Creates an instance of aNetworkMismatchDatarecord class.- Parameters:
- mismatched- the value for the- mismatchedrecord component
- missing- the value for the- missingrecord component
- fromServer- the value for the- fromServerrecord component
- mods- the value for the- modsrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
mismatchedReturns the value of themismatchedrecord component.- Returns:
- the value of the mismatchedrecord component
 
- 
missingReturns the value of themissingrecord component.- Returns:
- the value of the missingrecord component
 
- 
fromServerpublic boolean fromServer()Returns the value of thefromServerrecord component.- Returns:
- the value of the fromServerrecord component
 
- 
modsReturns the value of themodsrecord component.- Returns:
- the value of the modsrecord component
 
 
-