added a wholebunch
This commit is contained in:
@@ -13,14 +13,19 @@ 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<?> 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, 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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user