Add mc-dev imports

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-04-07 15:03:29 +10:00
parent 0352f0e143
commit 97cd7810a3
21 changed files with 308 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
--- a/net/minecraft/world/entity/ai/attributes/GenericAttributes.java
+++ b/net/minecraft/world/entity/ai/attributes/GenericAttributes.java
@@ -1,3 +1,4 @@
+// mc-dev import
package net.minecraft.world.entity.ai.attributes;
import net.minecraft.core.IRegistry;
@@ -19,6 +20,6 @@
public static final AttributeBase JUMP_STRENGTH = a("horse.jump_strength", (new AttributeRanged("attribute.name.horse.jump_strength", 0.7D, 0.0D, 2.0D)).a(true));
private static AttributeBase a(String s, AttributeBase attributebase) {
- return (AttributeBase) IRegistry.a(IRegistry.ATTRIBUTE, s, (Object) attributebase);
+ return (AttributeBase) IRegistry.a(IRegistry.ATTRIBUTE, s, attributebase); // CraftBukkit - decompile error
}
}

View File

@@ -0,0 +1,7 @@
--- a/net/minecraft/world/entity/animal/EntitySquid.java
+++ b/net/minecraft/world/entity/animal/EntitySquid.java
@@ -1,3 +1,4 @@
+// mc-dev import
package net.minecraft.world.entity.animal;
import java.util.Random;