Package net.minecraft.item
Record Class ItemGroup.DisplayContext
java.lang.Object
java.lang.Record
net.minecraft.item.ItemGroup.DisplayContext
- Record Components:
- enabledFeatures-
- hasPermissions-
- lookup-
- Enclosing class:
- ItemGroup
public static record ItemGroup.DisplayContext(FeatureSet enabledFeatures, boolean hasPermissions, RegistryWrapper.WrapperLookup lookup)
extends Record
- Mappings:
- Namespace - Name - official - cef$d- intermediary - net/minecraft/class_1761$class_8128- named - net/minecraft/item/ItemGroup$DisplayContext- official - a- intermediary - comp_1251- named - enabledFeatures- official - b- intermediary - comp_1252- named - hasPermissions- official - c- intermediary - comp_1253- named - lookup
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final FeatureSetThe field for theenabledFeaturesrecord component.private final booleanThe field for thehasPermissionsrecord component.private final RegistryWrapper.WrapperLookupThe field for thelookuprecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionDisplayContext(FeatureSet featureSet, boolean bool, RegistryWrapper.WrapperLookup wrapperLookup) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleandoesNotMatch(FeatureSet enabledFeatures, boolean hasPermissions, RegistryWrapper.WrapperLookup lookup) Returns the value of theenabledFeaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasPermissionsrecord component.lookup()Returns the value of thelookuprecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
enabledFeaturesThe field for theenabledFeaturesrecord component.
- 
hasPermissionsprivate final boolean hasPermissionsThe field for thehasPermissionsrecord component.
- 
lookupThe field for thelookuprecord component.
 
- 
- 
Constructor Details- 
DisplayContextpublic DisplayContext(FeatureSet featureSet, boolean bool, RegistryWrapper.WrapperLookup wrapperLookup) 
 
- 
- 
Method Details- 
doesNotMatchpublic boolean doesNotMatch(FeatureSet enabledFeatures, boolean hasPermissions, RegistryWrapper.WrapperLookup lookup) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lcef$d;a(Lcaw;ZLhg$b;)Z- intermediary - method_48932- Lnet/minecraft/class_1761$class_8128;method_48932(Lnet/minecraft/class_7699;ZLnet/minecraft/class_7225$class_7874;)Z- named - doesNotMatch- Lnet/minecraft/item/ItemGroup$DisplayContext;doesNotMatch(Lnet/minecraft/resource/featuretoggle/FeatureSet;ZLnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Z
 
- 
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 '=='.
- 
enabledFeaturesReturns the value of theenabledFeaturesrecord component.- Returns:
- the value of the enabledFeaturesrecord component
 
- 
hasPermissionspublic boolean hasPermissions()Returns the value of thehasPermissionsrecord component.- Returns:
- the value of the hasPermissionsrecord component
 
- 
lookupReturns the value of thelookuprecord component.- Returns:
- the value of the lookuprecord component
 
 
-