Class ResourceWithFallback

java.lang.Object
com.pixelmonmod.pixelmon.api.util.ResourceWithFallback

public class ResourceWithFallback extends Object
  • Field Details

  • Method Details

    • from

      public static ResourceWithFallback from(net.minecraft.resources.ResourceLocation resource)
    • from

      public static ResourceWithFallback from(net.minecraft.resources.ResourceLocation resource, net.minecraft.resources.ResourceLocation fallback)
    • resetAll

      public static void resetAll()
    • get

      public net.minecraft.resources.ResourceLocation get()
    • ensureTexture

      public ResourceWithFallback ensureTexture()
    • reset

      public void reset()
    • getResource

      public net.minecraft.resources.ResourceLocation getResource()
    • getFallback

      public net.minecraft.resources.ResourceLocation getFallback()
    • usingResource

      public ResourceWithFallback usingResource(net.minecraft.resources.ResourceLocation resource)
    • usingFallback

      public ResourceWithFallback usingFallback(net.minecraft.resources.ResourceLocation fallback)
    • usingFallback

      public boolean usingFallback()
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buffer)
    • read

      public static ResourceWithFallback read(net.minecraft.network.FriendlyByteBuf buffer)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isNone

      public boolean isNone()
    • toString

      public String toString()
      Overrides:
      toString in class Object