Commits

md_5 authored f6ac70751db
Update to Minecraft 1.21.2
No tags

src/main/java/org/bukkit/attribute/Attribute.java

Modified
7 7 import org.jetbrains.annotations.NotNull;
8 8
9 9 /**
10 10 * Types of attributes which may be present on an {@link Attributable}.
11 11 */
12 12 public enum Attribute implements Keyed, Translatable {
13 13
14 14 /**
15 15 * Maximum health of an Entity.
16 16 */
17 - GENERIC_MAX_HEALTH("generic.max_health"),
17 + GENERIC_MAX_HEALTH("max_health"),
18 18 /**
19 19 * Range at which an Entity will follow others.
20 20 */
21 - GENERIC_FOLLOW_RANGE("generic.follow_range"),
21 + GENERIC_FOLLOW_RANGE("follow_range"),
22 22 /**
23 23 * Resistance of an Entity to knockback.
24 24 */
25 - GENERIC_KNOCKBACK_RESISTANCE("generic.knockback_resistance"),
25 + GENERIC_KNOCKBACK_RESISTANCE("knockback_resistance"),
26 26 /**
27 27 * Movement speed of an Entity.
28 28 */
29 - GENERIC_MOVEMENT_SPEED("generic.movement_speed"),
29 + GENERIC_MOVEMENT_SPEED("movement_speed"),
30 30 /**
31 31 * Flying speed of an Entity.
32 32 */
33 - GENERIC_FLYING_SPEED("generic.flying_speed"),
33 + GENERIC_FLYING_SPEED("flying_speed"),
34 34 /**
35 35 * Attack damage of an Entity.
36 36 */
37 - GENERIC_ATTACK_DAMAGE("generic.attack_damage"),
37 + GENERIC_ATTACK_DAMAGE("attack_damage"),
38 38 /**
39 39 * Attack knockback of an Entity.
40 40 */
41 - GENERIC_ATTACK_KNOCKBACK("generic.attack_knockback"),
41 + GENERIC_ATTACK_KNOCKBACK("attack_knockback"),
42 42 /**
43 43 * Attack speed of an Entity.
44 44 */
45 - GENERIC_ATTACK_SPEED("generic.attack_speed"),
45 + GENERIC_ATTACK_SPEED("attack_speed"),
46 46 /**
47 47 * Armor bonus of an Entity.
48 48 */
49 - GENERIC_ARMOR("generic.armor"),
49 + GENERIC_ARMOR("armor"),
50 50 /**
51 51 * Armor durability bonus of an Entity.
52 52 */
53 - GENERIC_ARMOR_TOUGHNESS("generic.armor_toughness"),
53 + GENERIC_ARMOR_TOUGHNESS("armor_toughness"),
54 54 /**
55 55 * The fall damage multiplier of an Entity.
56 56 */
57 - GENERIC_FALL_DAMAGE_MULTIPLIER("generic.fall_damage_multiplier"),
57 + GENERIC_FALL_DAMAGE_MULTIPLIER("fall_damage_multiplier"),
58 58 /**
59 59 * Luck bonus of an Entity.
60 60 */
61 - GENERIC_LUCK("generic.luck"),
61 + GENERIC_LUCK("luck"),
62 62 /**
63 63 * Maximum absorption of an Entity.
64 64 */
65 - GENERIC_MAX_ABSORPTION("generic.max_absorption"),
65 + GENERIC_MAX_ABSORPTION("max_absorption"),
66 66 /**
67 67 * The distance which an Entity can fall without damage.
68 68 */
69 - GENERIC_SAFE_FALL_DISTANCE("generic.safe_fall_distance"),
69 + GENERIC_SAFE_FALL_DISTANCE("safe_fall_distance"),
70 70 /**
71 71 * The relative scale of an Entity.
72 72 */
73 - GENERIC_SCALE("generic.scale"),
73 + GENERIC_SCALE("scale"),
74 74 /**
75 75 * The height which an Entity can walk over.
76 76 */
77 - GENERIC_STEP_HEIGHT("generic.step_height"),
77 + GENERIC_STEP_HEIGHT("step_height"),
78 78 /**
79 79 * The gravity applied to an Entity.
80 80 */
81 - GENERIC_GRAVITY("generic.gravity"),
81 + GENERIC_GRAVITY("gravity"),
82 82 /**
83 83 * Strength with which an Entity will jump.
84 84 */
85 - GENERIC_JUMP_STRENGTH("generic.jump_strength"),
85 + GENERIC_JUMP_STRENGTH("jump_strength"),
86 86 /**
87 87 * How long an entity remains burning after ingition.
88 88 */
89 - GENERIC_BURNING_TIME("generic.burning_time"),
89 + GENERIC_BURNING_TIME("burning_time"),
90 90 /**
91 91 * Resistance to knockback from explosions.
92 92 */
93 - GENERIC_EXPLOSION_KNOCKBACK_RESISTANCE("generic.explosion_knockback_resistance"),
93 + GENERIC_EXPLOSION_KNOCKBACK_RESISTANCE("explosion_knockback_resistance"),
94 94 /**
95 95 * Movement speed through difficult terrain.
96 96 */
97 - GENERIC_MOVEMENT_EFFICIENCY("generic.movement_efficiency"),
97 + GENERIC_MOVEMENT_EFFICIENCY("movement_efficiency"),
98 98 /**
99 99 * Oxygen use underwater.
100 100 */
101 - GENERIC_OXYGEN_BONUS("generic.oxygen_bonus"),
101 + GENERIC_OXYGEN_BONUS("oxygen_bonus"),
102 102 /**
103 103 * Movement speed through water.
104 104 */
105 - GENERIC_WATER_MOVEMENT_EFFICIENCY("generic.water_movement_efficiency"),
105 + GENERIC_WATER_MOVEMENT_EFFICIENCY("water_movement_efficiency"),
106 + /**
107 + * Range at which mobs will be tempted by items.
108 + */
109 + GENERIC_TEMPT_RANGE("tempt_range"),
106 110 /**
107 111 * The block reach distance of a Player.
108 112 */
109 - PLAYER_BLOCK_INTERACTION_RANGE("player.block_interaction_range"),
113 + PLAYER_BLOCK_INTERACTION_RANGE("block_interaction_range"),
110 114 /**
111 115 * The entity reach distance of a Player.
112 116 */
113 - PLAYER_ENTITY_INTERACTION_RANGE("player.entity_interaction_range"),
117 + PLAYER_ENTITY_INTERACTION_RANGE("entity_interaction_range"),
114 118 /**
115 119 * Block break speed of a Player.
116 120 */
117 - PLAYER_BLOCK_BREAK_SPEED("player.block_break_speed"),
121 + PLAYER_BLOCK_BREAK_SPEED("block_break_speed"),
118 122 /**
119 123 * Mining speed for correct tools.
120 124 */
121 - PLAYER_MINING_EFFICIENCY("player.mining_efficiency"),
125 + PLAYER_MINING_EFFICIENCY("mining_efficiency"),
122 126 /**
123 127 * Sneaking speed.
124 128 */
125 - PLAYER_SNEAKING_SPEED("player.sneaking_speed"),
129 + PLAYER_SNEAKING_SPEED("sneaking_speed"),
126 130 /**
127 131 * Underwater mining speed.
128 132 */
129 - PLAYER_SUBMERGED_MINING_SPEED("player.submerged_mining_speed"),
133 + PLAYER_SUBMERGED_MINING_SPEED("submerged_mining_speed"),
130 134 /**
131 135 * Sweeping damage.
132 136 */
133 - PLAYER_SWEEPING_DAMAGE_RATIO("player.sweeping_damage_ratio"),
137 + PLAYER_SWEEPING_DAMAGE_RATIO("sweeping_damage_ratio"),
134 138 /**
135 139 * Chance of a zombie to spawn reinforcements.
136 140 */
137 - ZOMBIE_SPAWN_REINFORCEMENTS("zombie.spawn_reinforcements");
141 + ZOMBIE_SPAWN_REINFORCEMENTS("spawn_reinforcements");
138 142
139 143 private final NamespacedKey key;
140 144
141 145 private Attribute(String key) {
142 146 this.key = NamespacedKey.minecraft(key);
143 147 }
144 148
145 149 @NotNull
146 150 @Override
147 151 public NamespacedKey getKey() {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut