Package com.comphenix.protocol.wrappers
Class WrappedRegistrable
java.lang.Object
com.comphenix.protocol.wrappers.AbstractWrapper
com.comphenix.protocol.wrappers.WrappedRegistrable
- All Implemented Interfaces:
ClonableWrapper
Represents a wrapper around registrable objects.
-
Field Summary
Fields inherited from class com.comphenix.protocol.wrappers.AbstractWrapper
handle, handleType -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull WrappedRegistrableblockEntityType(@NotNull MinecraftKey key) static @NotNull WrappedRegistrableblockEntityType(@NotNull String key) booleanstatic @NotNull WrappedRegistrablefromClassAndKey(@NotNull Class<?> registrableClass, @NotNull MinecraftKey key) static @NotNull WrappedRegistrablefromClassAndKey(@NotNull Class<?> registrableClass, @NotNull String key) static @NotNull WrappedRegistrablefromHandle(@NotNull com.comphenix.protocol.wrappers.WrappedRegistrable.Factory factory, @NotNull Object handle) static @NotNull WrappedRegistrablefromHandle(@NotNull Class<?> registrableClass, @NotNull Object handle) getKey()Gets this registrable object's Minecraft keyinthashCode()voidsetKey(MinecraftKey key) Sets this registrable object's Minecraft keytoString()Methods inherited from class com.comphenix.protocol.wrappers.AbstractWrapper
getHandle, getHandleType, setHandleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.comphenix.protocol.wrappers.ClonableWrapper
getHandle
-
Method Details
-
fromHandle
@NotNull public static @NotNull WrappedRegistrable fromHandle(@NotNull @NotNull com.comphenix.protocol.wrappers.WrappedRegistrable.Factory factory, @NotNull @NotNull Object handle) -
fromHandle
@NotNull public static @NotNull WrappedRegistrable fromHandle(@NotNull @NotNull Class<?> registrableClass, @NotNull @NotNull Object handle) -
fromClassAndKey
@NotNull public static @NotNull WrappedRegistrable fromClassAndKey(@NotNull @NotNull Class<?> registrableClass, @NotNull @NotNull MinecraftKey key) -
fromClassAndKey
@NotNull public static @NotNull WrappedRegistrable fromClassAndKey(@NotNull @NotNull Class<?> registrableClass, @NotNull @NotNull String key) -
blockEntityType
@NotNull public static @NotNull WrappedRegistrable blockEntityType(@NotNull @NotNull MinecraftKey key) -
blockEntityType
-
getKey
Gets this registrable object's Minecraft key- Returns:
- The Minecraft key
-
setKey
Sets this registrable object's Minecraft key- Parameters:
key- Minecraft key
-
deepClone
- Specified by:
deepClonein interfaceClonableWrapper
-
toString
- Overrides:
toStringin classAbstractWrapper
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractWrapper
-
equals
- Overrides:
equalsin classAbstractWrapper
-