Started with 1.10 and 1.11.2

This commit is contained in:
kindlich committed 2019-10-19 23:49:58 +02:00
1 parent 47d2ddc411
commit 0f74091da5
125 files changed
+4845 -4991

No files matched your search

@@ -1,9 +1,3 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package minetweaker.mc1102;
import minetweaker.IPlatformFunctions;
@@ -20,24 +14,25 @@ import static minetweaker.mc1102.MineTweakerMod.NETWORK;
/**
* @author Stan
*/
public class MCPlatformFunctions implements IPlatformFunctions{
public class MCPlatformFunctions implements IPlatformFunctions {
public static final MCPlatformFunctions INSTANCE = new MCPlatformFunctions();
private MCPlatformFunctions(){
private MCPlatformFunctions() {
}
@Override
public IChatMessage getMessage(String message){
public IChatMessage getMessage(String message) {
return new MCChatMessage(message);
}
@Override
public void distributeScripts(byte[] data){
public void distributeScripts(byte[] data) {
NETWORK.sendToAll(new MineTweakerLoadScriptsPacket(data));
}
@Override
public IItemDefinition getItemDefinition(int id){
public IItemDefinition getItemDefinition(int id) {
Item item = Item.getItemById(id);
if(item == null)
return null;