Class ResourceWithFallback
java.lang.Object
com.pixelmonmod.pixelmon.api.util.ResourceWithFallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResourceWithFallback> static final com.mojang.serialization.Codec<ResourceWithFallback> static final com.mojang.serialization.Codec<ResourceWithFallback> static longstatic final ResourceWithFallbackstatic final ResourceWithFallbackstatic final com.mojang.serialization.Codec<ResourceWithFallback> -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ResourceWithFallbackfrom(net.minecraft.resources.ResourceLocation resource) static ResourceWithFallbackfrom(net.minecraft.resources.ResourceLocation resource, net.minecraft.resources.ResourceLocation fallback) net.minecraft.resources.ResourceLocationget()net.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationbooleaninthashCode()booleanisNone()static ResourceWithFallbackread(net.minecraft.network.FriendlyByteBuf buffer) voidreset()toString()booleanvoidwrite(net.minecraft.network.FriendlyByteBuf buffer)
-
Field Details
-
lastResourceReload
public static long lastResourceReload -
NONE
-
NONE_TEXTURE
-
FALLBACK_CODEC
-
FALLBACK_TEXTURE_CODEC
-
CODEC
-
TEXTURE_CODEC
-
-
Method Details
-
from
-
from
public static ResourceWithFallback from(net.minecraft.resources.ResourceLocation resource, net.minecraft.resources.ResourceLocation fallback) -
get
public net.minecraft.resources.ResourceLocation get() -
ensureTexture
-
reset
public void reset() -
getResource
public net.minecraft.resources.ResourceLocation getResource() -
getFallback
public net.minecraft.resources.ResourceLocation getFallback() -
usingFallback
public boolean usingFallback() -
hasFallback
public boolean hasFallback() -
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) -
read
-
equals
-
hashCode
public int hashCode() -
isNone
public boolean isNone() -
toString
-