mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-28 15:38:00 +01:00
25 lines
1.1 KiB
Java
25 lines
1.1 KiB
Java
package com.minelittlepony.unicopia.entity;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
import com.minelittlepony.unicopia.Unicopia;
|
|
|
|
import net.minecraft.entity.attribute.ClampedEntityAttribute;
|
|
import net.minecraft.entity.attribute.EntityAttribute;
|
|
import net.minecraft.util.registry.Registry;
|
|
|
|
public interface UEntityAttributes {
|
|
List<EntityAttribute> REGISTRY = new ArrayList<>();
|
|
|
|
EntityAttribute EXTENDED_REACH_DISTANCE = register("pegasus.reach", new ClampedEntityAttribute("player.reachDistance", 0, 0, 10).setTracked(true));
|
|
EntityAttribute EXTRA_MINING_SPEED = register("earth.mining_speed", new ClampedEntityAttribute("player.miningSpeed", 1, 0, 5).setTracked(true));
|
|
EntityAttribute ENTITY_GRAVTY_MODIFIER = register("player.gravity", (new EntityAttribute("player.gravityModifier", 1) {}).setTracked(true));
|
|
|
|
private static EntityAttribute register(String name, EntityAttribute attribute) {
|
|
REGISTRY.add(attribute);
|
|
return Registry.register(Registry.ATTRIBUTE, Unicopia.id(name), attribute);
|
|
}
|
|
|
|
static void bootstrap() {}
|
|
}
|