mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Allow items to hide parts of their tooltips by default (#8358)
This commit is contained in:
1 parent
a9958b19db
commit
21787234f4
4 files changed
+102
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Minecraft Forge
|
||||
* Copyright (c) 2016-2021.
|
||||
* Copyright (c) 2016-2022.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@@ -740,4 +740,16 @@ public interface IForgeItem
|
||||
{
|
||||
return target.getBoundingBox().inflate(1.0D, 0.25D, 1.0D);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the tooltip parts that should be hidden by default on the given stack if the {@code HideFlags} tag is not set.
|
||||
* @see ItemStack.TooltipPart
|
||||
* @param stack the stack
|
||||
* @return the default hide flags
|
||||
*/
|
||||
default int getDefaultTooltipHideFlags(@Nonnull ItemStack stack)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user