Package net.minecraft.world.item
Record Class CreativeModeTab.ItemDisplayParameters
java.lang.Object
java.lang.Record
net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters
- Enclosing class:
- CreativeModeTab
public static record CreativeModeTab.ItemDisplayParameters(FeatureFlagSet enabledFeatures, boolean hasPermissions, HolderLookup.Provider holders)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final FeatureFlagSetThe field for theenabledFeaturesrecord component.private final booleanThe field for thehasPermissionsrecord component.private final HolderLookup.ProviderThe field for theholdersrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionItemDisplayParameters(FeatureFlagSet enabledFeatures, boolean hasPermissions, HolderLookup.Provider holders) Creates an instance of aItemDisplayParametersrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns 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.holders()Returns the value of theholdersrecord component.booleanneedsUpdate(FeatureFlagSet p_270338_, boolean p_270835_, HolderLookup.Provider p_270575_) 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.
- 
holdersThe field for theholdersrecord component.
 
- 
- 
Constructor Details- 
ItemDisplayParameterspublic ItemDisplayParameters(FeatureFlagSet enabledFeatures, boolean hasPermissions, HolderLookup.Provider holders) Creates an instance of aItemDisplayParametersrecord class.- Parameters:
- enabledFeatures- the value for the- enabledFeaturesrecord component
- hasPermissions- the value for the- hasPermissionsrecord component
- holders- the value for the- holdersrecord component
 
 
- 
- 
Method Details- 
needsUpdatepublic boolean needsUpdate(FeatureFlagSet p_270338_, boolean p_270835_, HolderLookup.Provider p_270575_) 
- 
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
 
- 
holdersReturns the value of theholdersrecord component.- Returns:
- the value of the holdersrecord component
 
 
-