Furnace Code Help

Discussion in 'Plugin Development' started by bear1717, Feb 20, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    bear1717

    Hey, I 'm developing mod for with the furnace. After the
    "Furnace = (new BlockFurnace(64, false)).setHardness............."
    What does the false part mean? Thanks. Sorry if this seems like a noobish question or if i posted in the wrong place.

    anyone know where to find this information?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  2. Offline

    CRAZYxMUNK3Y

    Can you post more of the code with what you are trying to do?

    The false in Java also usually refers to the String/Object being not as it is, eg (normal commnd set-out with Bukkit)

    Code:java
    1.  
    2. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] arg) {
    3. if (commandLabel.equalsIgnoreCase("command")) {
    4. if (sender instanceof Player == false) {
    5. /* If the sender is not a player, then continue with the code (as it equals false), if sender is player,
    6. stop here (as it is true) */
    7. return true;
    8.  


    Hope this makes sense.
     
  3. Offline

    dillyg10

    This could be a swing and a miss, but the false could mean that the furnace is not in the on state?
     
Thread Status:
Not open for further replies.

Share This Page