Class GlobalIdentifierImpl

java.lang.Object
dev.blonicx.craftlib.internal.identifier.GlobalIdentifierImpl
All Implemented Interfaces:
GlobalIdentifier

public final class GlobalIdentifierImpl extends Object implements GlobalIdentifier
  • Constructor Details

    • GlobalIdentifierImpl

      public GlobalIdentifierImpl(String namespace, String path)
  • Method Details

    • namespace

      public String namespace()
      Specified by:
      namespace in interface GlobalIdentifier
    • path

      public String path()
      Specified by:
      path in interface GlobalIdentifier
    • unwrap

      public net.minecraft.resources.ResourceLocation unwrap()
      Description copied from interface: GlobalIdentifier
      Returns an unsafe ResourceLocation-Variant based on the Version.
      Specified by:
      unwrap in interface GlobalIdentifier
      Returns:
      Unsafe ResourceLocation-Variant
    • tryBuild

      public net.minecraft.resources.ResourceLocation tryBuild()
      Description copied from interface: GlobalIdentifier
      Returns a safe ResourceLocation-Variant based on the Version.
      Specified by:
      tryBuild in interface GlobalIdentifier
      Returns:
      Safe ResourceLocation-Variant