Record Class ItemTooltipHandler.Insert
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.insert.handler.ItemTooltipHandler.Insert
- All Implemented Interfaces:
InsertHandler.Insert
- Enclosing class:
ItemTooltipHandler
public static record ItemTooltipHandler.Insert(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.player.Player player, List<net.minecraft.network.chat.Component> tooltips, net.minecraft.world.item.TooltipFlag flags)
extends Record
implements InsertHandler.Insert
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.item.TooltipFlagflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.ItemStackReturns the value of theitemStackrecord component.net.minecraft.world.entity.player.Playerplayer()Returns the value of theplayerrecord component.List<net.minecraft.network.chat.Component> tooltips()Returns the value of thetooltipsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Insert
public Insert(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.player.Player player, List<net.minecraft.network.chat.Component> tooltips, net.minecraft.world.item.TooltipFlag flags) Creates an instance of aInsertrecord class.- Parameters:
itemStack- the value for theitemStackrecord componentplayer- the value for theplayerrecord componenttooltips- the value for thetooltipsrecord componentflags- the value for theflagsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
itemStack
public net.minecraft.world.item.ItemStack itemStack()Returns the value of theitemStackrecord component.- Returns:
- the value of the
itemStackrecord component
-
player
public net.minecraft.world.entity.player.Player player()Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
tooltips
Returns the value of thetooltipsrecord component.- Returns:
- the value of the
tooltipsrecord component
-
flags
public net.minecraft.world.item.TooltipFlag flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-