Record Class NewPonderTooltipManager.RegisterBuilder
java.lang.Object
java.lang.Record
com.cake.azimuth.ponder.new_tooltip.NewPonderTooltipManager.RegisterBuilder
- Enclosing class:
NewPonderTooltipManager
public static record NewPonderTooltipManager.RegisterBuilder(net.minecraft.world.item.Item[] items)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRegisterBuilder(net.minecraft.world.item.Item... items) Creates an instance of aRegisterBuilderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddScenes(net.minecraft.resources.ResourceLocation... scenes) Register ponder scene IDs that should be tracked for the associated items.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.Item[]items()Returns the value of theitemsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegisterBuilder
public RegisterBuilder(net.minecraft.world.item.Item... items) Creates an instance of aRegisterBuilderrecord class.- Parameters:
items- the value for theitemsrecord component
-
-
Method Details
-
addScenes
public NewPonderTooltipManager.RegisterBuilder addScenes(net.minecraft.resources.ResourceLocation... scenes) Register ponder scene IDs that should be tracked for the associated items. When all registered scenes for an item have been watched, the "NEW" badge will no longer appear on that item's tooltip.- Parameters:
scenes- set of scene IDs as set byPonderSceneBuilder.title(String, String)
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
items
public net.minecraft.world.item.Item[] items()Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-