mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Add more patches
This commit is contained in:
1 parent
8b9545d622
commit
a1cbb799be
2 files changed
+26
No files matched your search
@@ -0,0 +1,15 @@
|
||||
--- src-reference/minecraft_server/net/minecraft/src/EntityList.java 0000-00-00 00:00:00.000000000 -0000
|
||||
+++ src-work/minecraft_server/net/minecraft/src/EntityList.java 0000-00-00 00:00:00.000000000 -0000
|
||||
@@ -201,4 +201,12 @@
|
||||
addMapping(EntityVillager.class, "Villager", 120, 5651507, 12422002);
|
||||
addMapping(EntityEnderCrystal.class, "EnderCrystal", 200);
|
||||
}
|
||||
+
|
||||
+ public static void addNewMapping(Class<? extends Entity> entityClass, String entityName, int id) {
|
||||
+ addMapping(entityClass, entityName, id);
|
||||
+ }
|
||||
+
|
||||
+ public static void addNewMapping(Class<? extends Entity> entityClass, String entityName, int id, int backgroundEggColour, int foregroundEggColour) {
|
||||
+ addMapping(entityClass, entityName, id, backgroundEggColour, foregroundEggColour);
|
||||
+ }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
--- src-reference/minecraft_server/net/minecraft/src/TileEntity.java 0000-00-00 00:00:00.000000000 -0000
|
||||
+++ src-work/minecraft_server/net/minecraft/src/TileEntity.java 0000-00-00 00:00:00.000000000 -0000
|
||||
@@ -200,4 +200,8 @@
|
||||
addMapping(TileEntityEnchantmentTable.class, "EnchantTable");
|
||||
addMapping(TileEntityEndPortal.class, "Airportal");
|
||||
}
|
||||
+
|
||||
+ public static void addTileEntityMapping(Class<? extends TileEntity> tileEntityClass, String id) {
|
||||
+ addMapping(tileEntityClass, id);
|
||||
+ }
|
||||
}
|
||||
Reference in new issue
Block a user