Remove stub injector methods

This commit is contained in:
Jesse Boyd
2018-08-13 02:36:39 +10:00
parent fa06ff357e
commit e7c27b08bf
124 changed files with 241 additions and 411 deletions

View File

@ -368,12 +368,12 @@ public abstract class AbstractPlayerActor implements Actor, Player, Cloneable {
}
@Override
public BaseBlock getBlockInHand(HandSide handSide) throws WorldEditException {
public BlockState getBlockInHand(HandSide handSide) throws WorldEditException {
final ItemType typeId = getItemInHand(handSide).getType();
if (typeId.hasBlockType()) {
return new BaseBlock(typeId.getBlockType());
return typeId.getBlockType().getDefaultState();
} else {
return new BaseBlock(BlockTypes.AIR);
return BlockTypes.AIR.getDefaultState();
}
}

View File

@ -522,7 +522,5 @@ public final class CommandManager {
return commandLog;
}
public static Class<?> inject() {
return CommandManager.class;
}
}

View File

@ -521,8 +521,6 @@ public class PlatformManager {
}
}
public static Class<?> inject() {
return PlatformManager.class;
}
}