package net.minecraft.world.item.equipment.trim; import net.minecraft.Util; import net.minecraft.core.registries.Registries; import net.minecraft.data.worldgen.BootstrapContext; import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; public class TrimPatterns { public static final ResourceKey SENTRY = registryKey("sentry"); public static final ResourceKey DUNE = registryKey("dune"); public static final ResourceKey COAST = registryKey("coast"); public static final ResourceKey WILD = registryKey("wild"); public static final ResourceKey WARD = registryKey("ward"); public static final ResourceKey EYE = registryKey("eye"); public static final ResourceKey VEX = registryKey("vex"); public static final ResourceKey TIDE = registryKey("tide"); public static final ResourceKey SNOUT = registryKey("snout"); public static final ResourceKey RIB = registryKey("rib"); public static final ResourceKey SPIRE = registryKey("spire"); public static final ResourceKey WAYFINDER = registryKey("wayfinder"); public static final ResourceKey SHAPER = registryKey("shaper"); public static final ResourceKey SILENCE = registryKey("silence"); public static final ResourceKey RAISER = registryKey("raiser"); public static final ResourceKey HOST = registryKey("host"); public static final ResourceKey FLOW = registryKey("flow"); public static final ResourceKey BOLT = registryKey("bolt"); public static void bootstrap(BootstrapContext p_362921_) { register(p_362921_, SENTRY); register(p_362921_, DUNE); register(p_362921_, COAST); register(p_362921_, WILD); register(p_362921_, WARD); register(p_362921_, EYE); register(p_362921_, VEX); register(p_362921_, TIDE); register(p_362921_, SNOUT); register(p_362921_, RIB); register(p_362921_, SPIRE); register(p_362921_, WAYFINDER); register(p_362921_, SHAPER); register(p_362921_, SILENCE); register(p_362921_, RAISER); register(p_362921_, HOST); register(p_362921_, FLOW); register(p_362921_, BOLT); } public static void register(BootstrapContext p_363436_, ResourceKey p_366846_) { TrimPattern trimpattern = new TrimPattern(defaultAssetId(p_366846_), Component.translatable(Util.makeDescriptionId("trim_pattern", p_366846_.location())), false); p_363436_.register(p_366846_, trimpattern); } private static ResourceKey registryKey(String p_368467_) { return ResourceKey.create(Registries.TRIM_PATTERN, ResourceLocation.withDefaultNamespace(p_368467_)); } public static ResourceLocation defaultAssetId(ResourceKey p_394517_) { return p_394517_.location(); } }