Class RegistryAccessMock

java.lang.Object
be.seeseemelk.mockbukkit.registry.RegistryAccessMock
All Implemented Interfaces:
io.papermc.paper.registry.RegistryAccess

public class RegistryAccessMock extends Object implements io.papermc.paper.registry.RegistryAccess
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends org.bukkit.Keyed>
    @NotNull org.bukkit.Registry<T>
    getRegistry(@NotNull io.papermc.paper.registry.RegistryKey<T> registryKey)
     
    <T extends org.bukkit.Keyed>
    @Nullable org.bukkit.Registry<T>
    getRegistry(@NotNull Class<T> type)
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegistryAccessMock

      public RegistryAccessMock()
  • Method Details

    • getRegistry

      @Deprecated(forRemoval=true, since="1.20.6") @Nullable public <T extends org.bukkit.Keyed> @Nullable org.bukkit.Registry<T> getRegistry(@NotNull @NotNull Class<T> type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getRegistry in interface io.papermc.paper.registry.RegistryAccess
    • getRegistry

      @NotNull public <T extends org.bukkit.Keyed> @NotNull org.bukkit.Registry<T> getRegistry(@NotNull @NotNull io.papermc.paper.registry.RegistryKey<T> registryKey)
      Specified by:
      getRegistry in interface io.papermc.paper.registry.RegistryAccess