15 lines
582 B
Java
15 lines
582 B
Java
|
package net.minecraft.references;
|
||
|
|
||
|
import net.minecraft.core.registries.Registries;
|
||
|
import net.minecraft.resources.ResourceKey;
|
||
|
import net.minecraft.resources.ResourceLocation;
|
||
|
import net.minecraft.world.item.Item;
|
||
|
|
||
|
public class Items {
|
||
|
public static final ResourceKey<Item> PUMPKIN_SEEDS = createKey("pumpkin_seeds");
|
||
|
public static final ResourceKey<Item> MELON_SEEDS = createKey("melon_seeds");
|
||
|
|
||
|
private static ResourceKey<Item> createKey(String p_311525_) {
|
||
|
return ResourceKey.create(Registries.ITEM, ResourceLocation.withDefaultNamespace(p_311525_));
|
||
|
}
|
||
|
}
|