use of ladysnake.gaspunk.gas.SuspendableGas in project Gaspunk by Ladysnake.
the class ModGases method addGases.
@SubscribeEvent
public static void addGases(RegistryEvent.Register<PotionType> event) {
REGISTRY.register(new SuspendableGas(GasTypes.GAS, 0x00FFFFFF, GasAgents.getAgent(new ResourceLocation(GasPunk.MOD_ID, "nerve")), 0.8F).setRegistryName("sarin_gas"));
REGISTRY.register(new Gas(GasTypes.GAS, GasParticleTypes.GAS, 0x99FFFFFF, 0xAA0033FF, ImmutableList.of(), new String[0]).setRegistryName("air"));
for (EnumDyeColor color : EnumDyeColor.values()) {
// this is probably illegal in 53 states but I didn't want to parse the value back from the table
REGISTRY.register(new Gas(GasTypes.SMOKE, 0xFF000000 | (int) ReflectionHelper.getPrivateValue(EnumDyeColor.class, color, "colorValue", "field_193351_w")).setRegistryName("colored_smoke_" + color.getName()));
}
}
Aggregations