Class DisplayInfo


  • public class DisplayInfo
    extends java.lang.Object
    • Field Detail

      • showToast

        private final boolean showToast
      • announceChat

        private final boolean announceChat
      • hidden

        private final boolean hidden
      • x

        private float x
      • y

        private float y
    • Method Detail

      • setLocation

        public void setLocation​(float p_192292_1_,
                                float p_192292_2_)
      • getX

        public float getX()
      • getY

        public float getY()
      • shouldShowToast

        public boolean shouldShowToast()
      • shouldAnnounceChat

        public boolean shouldAnnounceChat()
      • isHidden

        public boolean isHidden()
      • fromJson

        public static DisplayInfo fromJson​(com.google.gson.JsonObject p_192294_0_)
      • getIcon

        private static ItemStack getIcon​(com.google.gson.JsonObject p_193221_0_)
      • serializeToNetwork

        public void serializeToNetwork​(PacketBuffer p_192290_1_)
      • serializeToJson

        public com.google.gson.JsonElement serializeToJson()
      • serializeIcon

        private com.google.gson.JsonObject serializeIcon()