public class DisplayInfo
extends java.lang.Object
コンストラクタと説明 |
---|
DisplayInfo(ItemStack icon,
ITextComponent title,
ITextComponent description,
ResourceLocation background,
FrameType frame,
boolean showToast,
boolean announceToChat,
boolean hidden) |
修飾子とタイプ | メソッドと説明 |
---|---|
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) |
com.google.gson.JsonElement |
serialize() |
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)
public com.google.gson.JsonElement serialize()