Class CoreData
java.lang.Object
io.github.gameking1happy.gk1hcore.data.CoreData
Useful things for data-related stuff.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull net.minecraft.resources.ResourceLocationMethod to more simply call theResourceLocation.fromNamespaceAndPath(String, String)method.static @NotNull net.minecraft.tags.TagKey<net.minecraft.world.item.Item> Method to more simply call theTagKey.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 theTagKey.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 theTagKey.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 theTagKey.create(ResourceKey, ResourceLocation)method.
-
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 theResourceLocation.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 theTagKey.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 theTagKey.create(ResourceKey, ResourceLocation)method. UsesfNaP(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 theTagKey.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 theTagKey.create(ResourceKey, ResourceLocation)method. Specifically for item registry. UsesfNaP(String, String)for giving namespace and path directly.- Parameters:
namespace- Namespace.path- Path.- Returns:
- Tag key.
-