public class DisplayInfo
extends java.lang.Object
Constructor and Description |
---|
DisplayInfo(ItemStack icon,
ITextComponent title,
ITextComponent description,
ResourceLocation background,
FrameType frame,
boolean showToast,
boolean announceToChat,
boolean hidden) |
Modifier and Type | Method and Description |
---|---|
static DisplayInfo |
deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext context) |
ResourceLocation |
getBackground() |
ITextComponent |
getDescription() |
FrameType |
getFrame() |
ItemStack |
getIcon() |
ITextComponent |
getTitle() |
float |
getX() |
float |
getY() |
boolean |
isHidden() |
static DisplayInfo |
read(PacketBuffer buf) |
void |
setPosition(float x,
float y) |
boolean |
shouldAnnounceToChat() |
boolean |
shouldShowToast() |
void |
write(PacketBuffer buf) |
public DisplayInfo(ItemStack icon, ITextComponent title, ITextComponent description, @Nullable ResourceLocation background, FrameType frame, boolean showToast, boolean announceToChat, boolean hidden)
public void setPosition(float x, float y)
public ITextComponent getTitle()
public ITextComponent getDescription()
public ItemStack getIcon()
@Nullable public ResourceLocation getBackground()
public FrameType getFrame()
public float getX()
public float getY()
public boolean shouldShowToast()
public boolean shouldAnnounceToChat()
public boolean isHidden()
public static DisplayInfo deserialize(com.google.gson.JsonObject object, com.google.gson.JsonDeserializationContext context)
public void write(PacketBuffer buf)
public static DisplayInfo read(PacketBuffer buf) throws java.io.IOException
java.io.IOException