19 lines
		
	
	
	
		
			896 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			896 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.level.block.Block;
 | |
| 
 | |
| public class Blocks {
 | |
| 	public static final ResourceKey<Block> PUMPKIN = createKey("pumpkin");
 | |
| 	public static final ResourceKey<Block> PUMPKIN_STEM = createKey("pumpkin_stem");
 | |
| 	public static final ResourceKey<Block> ATTACHED_PUMPKIN_STEM = createKey("attached_pumpkin_stem");
 | |
| 	public static final ResourceKey<Block> MELON = createKey("melon");
 | |
| 	public static final ResourceKey<Block> MELON_STEM = createKey("melon_stem");
 | |
| 	public static final ResourceKey<Block> ATTACHED_MELON_STEM = createKey("attached_melon_stem");
 | |
| 
 | |
| 	private static ResourceKey<Block> createKey(String id) {
 | |
| 		return ResourceKey.create(Registries.BLOCK, ResourceLocation.withDefaultNamespace(id));
 | |
| 	}
 | |
| }
 |