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

@ -101,7 +101,7 @@ public class TargetBlock {
boolean searchForLastBlock = true;
Location lastBlock = null;
while (getNextBlock() != null) {
if (world.getLazyBlock(getCurrentBlock().toVector()).getBlockType().getMaterial().isAir()) {
if (world.getBlockType(getCurrentBlock().toVector()).getMaterial().isAir()) {
if (searchForLastBlock) {
lastBlock = getCurrentBlock();
if (lastBlock.getBlockY() <= 0 || lastBlock.getBlockY() >= world.getMaxY()) {
@ -123,7 +123,7 @@ public class TargetBlock {
* @return Block
*/
public Location getTargetBlock() {
while (getNextBlock() != null && world.getLazyBlock(getCurrentBlock().toVector()).getBlockType().getMaterial().isAir()) ;
while (getNextBlock() != null && world.getBlockType(getCurrentBlock().toVector()).getMaterial().isAir()) ;
return getCurrentBlock();
}
@ -134,7 +134,7 @@ public class TargetBlock {
* @return Block
*/
public Location getSolidTargetBlock() {
while (getNextBlock() != null && !world.getBlock(getCurrentBlock().toVector()).getBlockType().getMaterial().isMovementBlocker()) ;
while (getNextBlock() != null && !world.getBlockType(getCurrentBlock().toVector()).getMaterial().isMovementBlocker()) ;
return getCurrentBlock();
}

View File

@ -95,8 +95,6 @@ public class SimpleCommandMapping implements CommandMapping {
'}';
}
public static Class<?> inject() {
return SimpleCommandMapping.class;
}
}

View File

@ -191,7 +191,5 @@ public class DispatcherNode {
return dispatcher;
}
public static Class<?> inject() {
return DispatcherNode.class;
}
}

View File

@ -177,8 +177,6 @@ public class ContextArgumentStack implements ArgumentStack {
return context;
}
public static Class<?> inject() {
return ContextArgumentStack.class;
}
}

View File

@ -198,7 +198,5 @@ public class ParameterData extends SimpleParameter {
}
}
public static Class<?> inject() {
return ParameterData.class;
}
}

View File

@ -293,8 +293,6 @@ public class ParametricBuilder {
this.defaultCompleter = defaultCompleter;
}
public static Class<?> inject() {
return ParametricBuilder.class;
}
}

View File

@ -352,7 +352,5 @@ public class ParametricCallable extends AParametricCallable {
}
}
public static Class<?> inject() {
return ParametricCallable.class;
}
}

View File

@ -151,7 +151,5 @@ public class StringArgumentStack implements ArgumentStack {
return value;
}
public static Class<?> inject() {
return StringArgumentStack.class;
}
}

View File

@ -89,7 +89,5 @@ public class Fragment {
return builder.toString();
}
public static Class<?> inject() {
return Fragment.class;
}
}

View File

@ -47,7 +47,5 @@ public class CommandListBox extends MessageBox {
return this;
}
public static Class<?> inject() {
return CommandListBox.class;
}
}

View File

@ -109,8 +109,6 @@ public class CommandUsageBox extends StyledFragment {
append(box);
}
public static Class<?> inject() {
return CommandUsageBox.class;
}
}

View File

@ -50,7 +50,5 @@ public class MessageBox extends StyledFragment {
return contents;
}
public static Class<?> inject() {
return MessageBox.class;
}
}