Class ResourceLocation
java.lang.Object
com.github.retrooper.packetevents.resources.ResourceLocation
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResourceLocation
(String location) ResourceLocation
(String namespace, String key) ResourceLocation
(net.kyori.adventure.key.Key key) -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceLocation
decode
(NBT nbt, PacketWrapper<?> wrapper) static NBT
encode
(PacketWrapper<?> wrapper, ResourceLocation resourceLocation) boolean
getKey()
static String
getNamespace
(String location) static String
int
hashCode()
net.kyori.adventure.key.Key
key()
static ResourceLocation
static @Nullable String
normString
(@Nullable String location) static ResourceLocation
read
(PacketWrapper<?> wrapper) toString()
static void
write
(PacketWrapper<?> wrapper, ResourceLocation resourceLocation)
-
Field Details
-
VANILLA_NAMESPACE
- See Also:
-
namespace
-
key
-
-
Constructor Details
-
ResourceLocation
public ResourceLocation(net.kyori.adventure.key.Key key) -
ResourceLocation
-
ResourceLocation
-
-
Method Details
-
read
-
write
-
decode
-
encode
-
getNamespace
-
getPath
-
normString
-
key
public net.kyori.adventure.key.Key key()- Specified by:
key
in interfacenet.kyori.adventure.key.Keyed
-
getNamespace
-
getKey
-
hashCode
public int hashCode() -
equals
-
toString
-
minecraft
-