Class CoreData

java.lang.Object
io.github.gameking1happy.gk1hcore.data.CoreData

public class CoreData extends Object
Useful things for data-related stuff.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull net.minecraft.resources.ResourceLocation
    fNaP(@NotNull String namespace, @NotNull String path)
    Method to more simply call the ResourceLocation.fromNamespaceAndPath(String, String) method.
    static @NotNull net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    ITKC(@NotNull String namespace, @NotNull String path)
    Method to more simply call the TagKey.create(ResourceKey, ResourceLocation) method.
    static @NotNull net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    ITKC(@NotNull net.minecraft.resources.ResourceLocation location)
    Method to more simply call the TagKey.create(ResourceKey, ResourceLocation) method.
    static <T> @NotNull net.minecraft.tags.TagKey<T>
    TKC(@NotNull net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, @NotNull String namespace, @NotNull String path)
    Method to more simply call the TagKey.create(ResourceKey, ResourceLocation) method.
    static <T> @NotNull net.minecraft.tags.TagKey<T>
    TKC(@NotNull net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, @NotNull net.minecraft.resources.ResourceLocation location)
    Method to more simply call the TagKey.create(ResourceKey, ResourceLocation) method.

    Methods inherited from class java.lang.Object

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

    • CoreData

      public CoreData()
  • Method Details

    • fNaP

      @NotNull public static @NotNull net.minecraft.resources.ResourceLocation fNaP(@NotNull @NotNull String namespace, @NotNull @NotNull String path)
      Method to more simply call the ResourceLocation.fromNamespaceAndPath(String, String) method.
      Parameters:
      namespace - Namespace.
      path - Path.
      Returns:
      ResourceLocation.
    • TKC

      @NotNull public static <T> @NotNull net.minecraft.tags.TagKey<T> TKC(@NotNull @NotNull net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, @NotNull @NotNull net.minecraft.resources.ResourceLocation location)
      Method to more simply call the TagKey.create(ResourceKey, ResourceLocation) method. All other TagKey methods end up to using this one.
      Type Parameters:
      T - In reality is the registry.
      Parameters:
      registry - Actually is the resource key.
      location - Resource location.
      Returns:
      Tag key.
    • TKC

      @NotNull public static <T> @NotNull net.minecraft.tags.TagKey<T> TKC(@NotNull @NotNull net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, @NotNull @NotNull String namespace, @NotNull @NotNull String path)
      Method to more simply call the TagKey.create(ResourceKey, ResourceLocation) method. Uses fNaP(String, String) for giving namespace and path directly.
      Type Parameters:
      T - In reality is the registry.
      Parameters:
      registry - Actually is the resource key.
      namespace - Namespace.
      path - Path.
      Returns:
      Tag key.
    • ITKC

      @NotNull public static @NotNull net.minecraft.tags.TagKey<net.minecraft.world.item.Item> ITKC(@NotNull @NotNull net.minecraft.resources.ResourceLocation location)
      Method to more simply call the TagKey.create(ResourceKey, ResourceLocation) method. Specifically for item registry.
      Parameters:
      location - Resource location.
      Returns:
      Tag key.
    • ITKC

      @NotNull public static @NotNull net.minecraft.tags.TagKey<net.minecraft.world.item.Item> ITKC(@NotNull @NotNull String namespace, @NotNull @NotNull String path)
      Method to more simply call the TagKey.create(ResourceKey, ResourceLocation) method. Specifically for item registry. Uses fNaP(String, String) for giving namespace and path directly.
      Parameters:
      namespace - Namespace.
      path - Path.
      Returns:
      Tag key.