Record Class TooltipTagType<T>
java.lang.Object
java.lang.Record
dev.latvian.mods.betteradvancedtooltips.TooltipTagType<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TooltipTagType<net.minecraft.world.level.block.entity.BannerPattern> static final TooltipTagType<net.minecraft.world.level.block.Block> static final TooltipTagType<net.minecraft.world.item.enchantment.Enchantment> static final TooltipTagType<net.minecraft.world.entity.EntityType<?>> static final TooltipTagType<net.minecraft.world.level.material.Fluid> static final TooltipTagType<net.minecraft.world.item.Instrument> static final TooltipTagType<net.minecraft.world.item.Item> static final TooltipTagType<net.minecraft.world.entity.decoration.painting.PaintingVariant> -
Constructor Summary
ConstructorsConstructorDescriptionTooltipTagType(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registryKey, net.minecraft.network.chat.Component component) Creates an instance of aTooltipTagTyperecord class.TooltipTagType(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registryKey, net.minecraft.network.chat.Style style, String symbol) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentReturns the value of thecomponentrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> Returns the value of theregistryKeyrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
BANNER_PATTERN
public static final TooltipTagType<net.minecraft.world.level.block.entity.BannerPattern> BANNER_PATTERN -
BLOCK
-
ENCHANTMENT
-
ENTITY_TYPE
-
FLUID
-
ITEM
-
INSTRUMENT
-
PAINTING_VARIANT
public static final TooltipTagType<net.minecraft.world.entity.decoration.painting.PaintingVariant> PAINTING_VARIANT
-
-
Constructor Details
-
TooltipTagType
-
TooltipTagType
public TooltipTagType(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registryKey, net.minecraft.network.chat.Component component) Creates an instance of aTooltipTagTyperecord class.- Parameters:
registryKey- the value for theregistryKeyrecord componentcomponent- the value for thecomponentrecord component
-
-
Method Details
-
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). -
toString
-
registryKey
Returns the value of theregistryKeyrecord component.- Returns:
- the value of the
registryKeyrecord component
-
component
public net.minecraft.network.chat.Component component()Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-