Class ResourceWithFallback
java.lang.Object
com.pixelmonmod.pixelmon.api.util.ResourceWithFallback
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResourceWithFallback>
static final com.mojang.serialization.Codec<ResourceWithFallback>
static final com.mojang.serialization.Codec<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
int
hashCode()
boolean
isNone()
static ResourceWithFallback
read
(net.minecraft.network.FriendlyByteBuf buffer) void
reset()
static void
resetAll()
toString()
boolean
usingFallback
(net.minecraft.resources.ResourceLocation fallback) usingResource
(net.minecraft.resources.ResourceLocation resource) void
write
(net.minecraft.network.FriendlyByteBuf buffer)
-
Field Details
-
NONE
-
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) -
resetAll
public static void resetAll() -
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() -
usingResource
-
usingFallback
-
usingFallback
public boolean usingFallback() -
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) -
read
-
equals
-
hashCode
public int hashCode() -
isNone
public boolean isNone() -
toString
-