Merge pull request #33 from cpw/master
FML tweaks and a fix to release.py
This commit is contained in:
commit
f27a85c511
5 changed files with 21 additions and 13 deletions
|
@ -3171,7 +3171,7 @@ field_838_c,lowerChest,0,Inventory object corresponding to double chest lower pa
|
||||||
field_840_a,stackList,0,List of the stacks in the crafting matrix.
|
field_840_a,stackList,0,List of the stacks in the crafting matrix.
|
||||||
field_841_c,eventHandler,0,Class containing the callbacks for the events on_GUIClosed and on_CraftMaxtrixChanged.
|
field_841_c,eventHandler,0,Class containing the callbacks for the events on_GUIClosed and on_CraftMaxtrixChanged.
|
||||||
field_842_b,armorInventory,0,An array of 4 item stacks containing the currently worn armor pieces.
|
field_842_b,armorInventory,0,An array of 4 item stacks containing the currently worn armor pieces.
|
||||||
field_843_a,mainInventory,0,An array of 37 item stacks (but only filled with 36?) indicating the main player inventory (including the visible bar).
|
field_843_a,mainInventory,0,An array of 36 item stacks indicating the main player inventory (including the visible bar).
|
||||||
field_844_g,player,0,The player whose inventory this is.
|
field_844_g,player,0,The player whose inventory this is.
|
||||||
field_845_f,inventoryChanged,0,Set true whenever the inventory changes. Nothing sets it false so you will have to write your own code to check it and reset the value.
|
field_845_f,inventoryChanged,0,Set true whenever the inventory changes. Nothing sets it false so you will have to write your own code to check it and reset the value.
|
||||||
field_847_d,currentItem,0,The index of the currently held item (0-8).
|
field_847_d,currentItem,0,The index of the currently held item (0-8).
|
||||||
|
@ -5279,7 +5279,7 @@ field_492_f,mobID,1,"The string ID of the mobs being spawned from this spawner.
|
||||||
field_493_e,delay,1,The stored delay before a new spawn.
|
field_493_e,delay,1,The stored delay before a new spawn.
|
||||||
field_494_e,chestContents,1,
|
field_494_e,chestContents,1,
|
||||||
field_495_b,armorInventory,1,An array of 4 item stacks containing the currently worn armor pieces.
|
field_495_b,armorInventory,1,An array of 4 item stacks containing the currently worn armor pieces.
|
||||||
field_496_a,mainInventory,1,An array of 37 item stacks (but only filled with 36?) indicating the main player inventory (including the visible bar).
|
field_496_a,mainInventory,1,An array of 36 item stacks indicating the main player inventory (including the visible bar).
|
||||||
field_497_f,player,1,The player whose inventory this is.
|
field_497_f,player,1,The player whose inventory this is.
|
||||||
field_498_e,inventoryChanged,1,Set true whenever the inventory changes. Nothing sets it false so you will have to write your own code to check it and reset the value.
|
field_498_e,inventoryChanged,1,Set true whenever the inventory changes. Nothing sets it false so you will have to write your own code to check it and reset the value.
|
||||||
field_499_d,currentItem,1,The index of the currently held item (0-8).
|
field_499_d,currentItem,1,The index of the currently held item (0-8).
|
||||||
|
|
|
|
@ -2337,7 +2337,7 @@ func_516_a,generate,0,
|
||||||
func_517_a,setScale,0,"Rescales the generator settings, only used in WorldGenBigTree"
|
func_517_a,setScale,0,"Rescales the generator settings, only used in WorldGenBigTree"
|
||||||
func_518_b,generateLeaves,0,Generates the leaf portion of the tree as specified by the leafNodes list.
|
func_518_b,generateLeaves,0,Generates the leaf portion of the tree as specified by the leafNodes list.
|
||||||
func_519_e,validTreeLocation,0,"Returns a boolean indicating whether or not the current location for the tree, spanning basePos to to the height limit, is valid."
|
func_519_e,validTreeLocation,0,"Returns a boolean indicating whether or not the current location for the tree, spanning basePos to to the height limit, is valid."
|
||||||
func_52003_C,getVersion,0,Returns the version of Minecraft as a string
|
func_52003_C,getVersion,0,Returns the client version string
|
||||||
func_52004_D,createAndSendReport,0,Creates and sends anonymous system information to Mojang's stats server
|
func_52004_D,createAndSendReport,0,Creates and sends anonymous system information to Mojang's stats server
|
||||||
func_52013_a,updatePlayerMoveState,0,
|
func_52013_a,updatePlayerMoveState,0,
|
||||||
func_52014_d,stripColorCodes,0,Remove all embedded color codes from a string
|
func_52014_d,stripColorCodes,0,Remove all embedded color codes from a string
|
||||||
|
@ -3871,7 +3871,7 @@ func_40007_e,logSevere,1,Log severe error message
|
||||||
func_40008_d,handleRConCommand,1,Handle a command received by an RCon instance
|
func_40008_d,handleRConCommand,1,Handle a command received by an RCon instance
|
||||||
func_40009_f,getHostname,1,Returns the server hostname
|
func_40009_f,getHostname,1,Returns the server hostname
|
||||||
func_40011_a,getIntProperty,1,"Returns the specified property value as an int, or a default if the property doesn't exist"
|
func_40011_a,getIntProperty,1,"Returns the specified property value as an int, or a default if the property doesn't exist"
|
||||||
func_40012_i,getVersionString,1,Returns the server version string
|
func_40012_i,getVersion,1,Returns the server version string
|
||||||
func_40013_e,getSettingsFilename,1,Returns the filename where server properties are stored
|
func_40013_e,getSettingsFilename,1,Returns the filename where server properties are stored
|
||||||
func_40014_h,getMotd,1,Returns the server message of the day
|
func_40014_h,getMotd,1,Returns the server message of the day
|
||||||
func_40015_k,getMaxPlayers,1,Returns the maximum number of players allowed on the server
|
func_40015_k,getMaxPlayers,1,Returns the maximum number of players allowed on the server
|
||||||
|
@ -4171,6 +4171,7 @@ func_40641_a,getEnchantmentModifierLiving,1,Return the (magic) extra damage of t
|
||||||
func_40642_a,calcItemStackEnchantability,1,"Returns the enchantability of itemstack, it's uses a singular formula for each index (2nd parameter: 0, 1 and 2), cutting to the max enchantability power of the table (3rd parameter)"
|
func_40642_a,calcItemStackEnchantability,1,"Returns the enchantability of itemstack, it's uses a singular formula for each index (2nd parameter: 0, 1 and 2), cutting to the max enchantability power of the table (3rd parameter)"
|
||||||
func_40643_c,getUnbreakingModifier,1,Returns the unbreaking enchantment modifier on current equipped item of player.
|
func_40643_c,getUnbreakingModifier,1,Returns the unbreaking enchantment modifier on current equipped item of player.
|
||||||
func_40644_d,getSilkTouchModifier,1,Returns the silk touch status of enchantments on current equipped item of player.
|
func_40644_d,getSilkTouchModifier,1,Returns the silk touch status of enchantments on current equipped item of player.
|
||||||
|
func_40648_a,joinStrings,1,Joins array elements with the delimiter String.
|
||||||
func_4064_a,loadBlockGeneratorData,1,"Returns biomes to use for the blocks and loads the other data like temperature and humidity onto the WorldChunkManager Args: oldBiomeList, x, z, width, depth"
|
func_4064_a,loadBlockGeneratorData,1,"Returns biomes to use for the blocks and loads the other data like temperature and humidity onto the WorldChunkManager Args: oldBiomeList, x, z, width, depth"
|
||||||
func_40656_c,getPropertiesFile,1,Returns this PropertyManager's file object used for property saving.
|
func_40656_c,getPropertiesFile,1,Returns this PropertyManager's file object used for property saving.
|
||||||
func_40657_a,setProperty,1,Saves an Object with the given property name
|
func_40657_a,setProperty,1,Saves an Object with the given property name
|
||||||
|
@ -4573,6 +4574,14 @@ func_516_a,canBlockBePlacedAt,1,"Returns true if the specified block can be plac
|
||||||
func_517_a,getBlockLightValue_do,1,"Gets the light value of a block location. This is the actual function that gets the value and has a bool flag that indicates if its a half step block to get the maximum light value of a direct neighboring block (left, right, forward, back, and up)"
|
func_517_a,getBlockLightValue_do,1,"Gets the light value of a block location. This is the actual function that gets the value and has a bool flag that indicates if its a half step block to get the maximum light value of a direct neighboring block (left, right, forward, back, and up)"
|
||||||
func_518_a,tickUpdates,1,Runs through the list of updates to run and ticks them
|
func_518_a,tickUpdates,1,Runs through the list of updates to run and ticks them
|
||||||
func_519_b,markBlocksDirty,1,
|
func_519_b,markBlocksDirty,1,
|
||||||
|
func_52003_getServerModName,getServerBrand,1,"Returns the brand name of this server. Usually overridden/changed by server mods, such as Bukkit."
|
||||||
|
func_52008_a,buildPostString,1,Builds an encoded HTTP POST content string from a string map
|
||||||
|
func_52009_a,sendPost,1,Sends a HTTP POST request to the given URL with data from a string
|
||||||
|
func_52010_a,sendPost,1,Sends a HTTP POST request to the given URL with data from a map
|
||||||
|
func_52011_b,getDataMap,1,Returns the data map for the given usage snooper
|
||||||
|
func_52012_a,sendReport,1,Starts a new thread to send the information to the report server
|
||||||
|
func_52013_a,getServerURL,1,Returns the server URL for the given usage snooper
|
||||||
|
func_52014_a,addData,1,Adds information to the report
|
||||||
func_520_e,updateEntity,1,Will update the entity in the world if the chunk the entity is in is currently loaded. Args: entity
|
func_520_e,updateEntity,1,Will update the entity in the world if the chunk the entity is in is currently loaded. Args: entity
|
||||||
func_521_f,markBlockNeedsUpdate,1,"Marks the block as needing an update with the renderer. Args: x, y, z"
|
func_521_f,markBlockNeedsUpdate,1,"Marks the block as needing an update with the renderer. Args: x, y, z"
|
||||||
func_522_a,checkIfAABBIsClear,1,"Returns true if there are no solid, live entities in the specified AxisAlignedBB"
|
func_522_a,checkIfAABBIsClear,1,"Returns true if there are no solid, live entities in the specified AxisAlignedBB"
|
||||||
|
|
|
Binary file not shown.
|
@ -1,19 +1,18 @@
|
||||||
--- ../src_base/minecraft_server/net/minecraft/src/SlotCrafting.java 0000-00-00 00:00:00.000000000 -0000
|
--- ../src_base/minecraft_server/net/minecraft/src/SlotCrafting.java 0000-00-00 00:00:00.000000000 -0000
|
||||||
+++ ../src_work/minecraft_server/net/minecraft/src/SlotCrafting.java 0000-00-00 00:00:00.000000000 -0000
|
+++ ../src_work/minecraft_server/net/minecraft/src/SlotCrafting.java 0000-00-00 00:00:00.000000000 -0000
|
||||||
@@ -1,5 +1,8 @@
|
@@ -2,6 +2,8 @@
|
||||||
package net.minecraft.src;
|
|
||||||
|
import cpw.mods.fml.server.FMLServerHandler;
|
||||||
|
|
||||||
+import cpw.mods.fml.server.FMLServerHandler;
|
|
||||||
+import net.minecraft.src.forge.ForgeHooks;
|
+import net.minecraft.src.forge.ForgeHooks;
|
||||||
+
|
+
|
||||||
public class SlotCrafting extends Slot
|
public class SlotCrafting extends Slot
|
||||||
{
|
{
|
||||||
/** The craft matrix inventory linked to this result slot. */
|
/** The craft matrix inventory linked to this result slot. */
|
||||||
@@ -96,6 +99,9 @@
|
@@ -99,6 +101,8 @@
|
||||||
*/
|
|
||||||
public void onPickupFromSlot(ItemStack par1ItemStack)
|
public void onPickupFromSlot(ItemStack par1ItemStack)
|
||||||
{
|
{
|
||||||
+ FMLServerHandler.instance().onItemCrafted(thePlayer, par1ItemStack, craftMatrix);
|
FMLServerHandler.instance().onItemCrafted(thePlayer, par1ItemStack, inventory);
|
||||||
+ ForgeHooks.onTakenFromCrafting(thePlayer, par1ItemStack, craftMatrix);
|
+ ForgeHooks.onTakenFromCrafting(thePlayer, par1ItemStack, craftMatrix);
|
||||||
+
|
+
|
||||||
this.func_48416_b(par1ItemStack);
|
this.func_48416_b(par1ItemStack);
|
||||||
|
|
|
@ -9,7 +9,7 @@ src_dir = os.path.join(mcp_dir, 'src')
|
||||||
sys.path.append(mcp_dir)
|
sys.path.append(mcp_dir)
|
||||||
from runtime.reobfuscate import reobfuscate
|
from runtime.reobfuscate import reobfuscate
|
||||||
|
|
||||||
from forge import reset_logger, load_version, zip_folder, zip_create
|
from forge import reset_logger, load_version, zip_folder, zip_create, inject_version
|
||||||
from build import build
|
from build import build
|
||||||
|
|
||||||
reobf_dir = os.path.join(mcp_dir, 'reobf')
|
reobf_dir = os.path.join(mcp_dir, 'reobf')
|
||||||
|
|
Loading…
Reference in a new issue