PIJ: Powder In Java

  • MiningMarsh
    25th Apr 2015 Member 2 Permalink

    Does java still have the switch statements where something like

    int y;
    switch(i) {
    case 1:
    case 2:
    ...
    y = 6;
    break;
    }

    results in something that is not a jumptable?

     

    @EE (View Post)

    Having developed something doesn't qualify you to shit on people.

  • firefreak11
    26th Apr 2015 Member 0 Permalink

    @MiningMarsh (View Post)

     Yeah Java has switch, but I typically only use it on enumerations.

  • MiningMarsh
    26th Apr 2015 Member 0 Permalink

    @firefreak11 (View Post)

    Yeah, but I know that a long while ago java switches didn't compile into jumptables (i.e. they were worthless). I don't know if that is still the case.

  • firefreak11
    26th Apr 2015 Member 0 Permalink

    @MiningMarsh (View Post)

     I'm not really the expert, as I do not know what  jump table is, but the case/switch statements aren't useless. They are actually really good for things like event listeners and constructors. 

    Edited once by firefreak11. Last: 26th Apr 2015
  • NF
    26th Apr 2015 Member 0 Permalink

    @firefreak11 (View Post)

     Hopefully this is a great mod and works. Will you be taking element request?

  • firefreak11
    26th Apr 2015 Member 0 Permalink

    @NUCLEAR_FOX (View Post)

     Sure! Just post all your suggestions here or send me a pm!

     

    Just released 1.0.1! This changes a lot of the source code's structure so that I can develop P-I-J more efficiently, there are two new elements: VENT and VACU, and there is a nice new icon!

    Edited once by firefreak11. Last: 26th Apr 2015
  • tmo97
    1st May 2015 Banned 0 Permalink
    This post is hidden because the user is banned
  • firefreak11
    2nd May 2015 Member 2 Permalink

    @tmo97 (View Post)

     This is pretty much what happens, because I decide to start mods right when school gets busy or something else takes my interest. But I can always update the science toy if I want, or if people even want. If this post gets at least 10 upvotes by June I can do a Science Toy Update. Also, I might just clone TPT in C++ because Java is too slow, and this is what I have been doing all week.

  • Factorial
    3rd May 2015 Banned 0 Permalink
    This post is hidden because the user is banned
  • tmo97
    3rd May 2015 Banned 1 Permalink
    This post is hidden because the user is banned