package com.smithy.faithful.registry; import com.smithy.faithful.Faithful; import com.smithy.faithful.power.CanStandOnPowderSnow; import com.smithy.faithful.power.PreventBlockSlowness; import com.smithy.faithful.power.WingsPower; import io.github.apace100.apoli.power.factory.PowerFactory; import io.github.apace100.apoli.registry.ApoliRegistries; import io.github.apace100.calio.data.SerializableData; import net.minecraft.registry.Registry; import net.minecraft.util.Identifier; public class ModPowers { public static final PowerFactory CAN_WALK_ON_POWDER_SNOW = new PowerFactory<>( new Identifier(Faithful.MOD_ID, "can_walk_on_powder_snow"), new SerializableData(), data -> (type, entity) -> new CanStandOnPowderSnow(type, entity)).allowCondition(); public static final PowerFactory PREVENT_BLOCK_SLOWNESS = new PowerFactory<>( new Identifier(Faithful.MOD_ID, "prevent_block_slowness"), new SerializableData(), data -> (type, entity) -> new PreventBlockSlowness(type, entity)).allowCondition(); public static final PowerFactory WINGS_POWER = WingsPower.createFactory().allowCondition(); public static void register() { Registry.register(ApoliRegistries.POWER_FACTORY, CAN_WALK_ON_POWDER_SNOW.getSerializerId(), CAN_WALK_ON_POWDER_SNOW); Registry.register(ApoliRegistries.POWER_FACTORY, PREVENT_BLOCK_SLOWNESS.getSerializerId(), PREVENT_BLOCK_SLOWNESS); Registry.register(ApoliRegistries.POWER_FACTORY, WingsPower.POWER_TYPE_ID, WINGS_POWER); } }