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 long
static final ResourceWithFallback
static final ResourceWithFallback
static final com.mojang.serialization.Codec
<ResourceWithFallback> -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ResourceWithFallback
from
(net.minecraft.resources.ResourceLocation resource) static ResourceWithFallback
from
(net.minecraft.resources.ResourceLocation resource, net.minecraft.resources.ResourceLocation fallback) net.minecraft.resources.ResourceLocation
get()
net.minecraft.resources.ResourceLocation
net.minecraft.resources.ResourceLocation
boolean
int
hashCode()
boolean
isNone()
static ResourceWithFallback
read
(net.minecraft.network.FriendlyByteBuf buffer) void
reset()
toString()
boolean
void
write
(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
-