This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void createArray(){ | |
//Create our scanner | |
Scanner scanner = new Scanner(System.in); | |
//Formatting! Just to make it pretty. We read in an integer with the scanner. The program knows to wait until you enter one | |
System.out.print("Enter an Array Length: "); | |
int length = scanner.nextInt(); | |
//Create our array | |
int[] arr = new int[length]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Book { | |
int numberSold; | |
private String name; | |
private double price; | |
public Book(String n, String p, int c) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.protocolManager = ProtocolLibrary.getProtocolManager(); | |
this.protocolManager.addPacketListener(new PacketAdapter(this, PacketType.Play.Client.BLOCK_DIG) { | |
@Override | |
public void onPacketReceiving(PacketEvent event) { | |
for(EnumWrappers.PlayerDigType digType : event.getPacket().getPlayerDigTypes().getValues()) { | |
if(digType == EnumWrappers.PlayerDigType.ABORT_DESTROY_BLOCK) { | |
//Do Things Here | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BitTests { | |
public static void main(String[] args) { | |
new BitTests().run(); | |
} | |
void run(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collect.yml | |
DIAMONDS: | |
ITEM_TO_GET: !!org.bukkit.Material 'DIAMOND' | |
COLLECT_AMOUNT: 3 | |
ITEM_ID: 0 | |
Bread Winner: | |
ITEM_TO_GET: !!org.bukkit.Material 'BREAD' | |
COLLECT_AMOUNT: 32 | |
ITEM_ID: 0 |
NewerOlder