mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 04:28:34 +00:00
Remove stub injector methods
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
@ -95,8 +95,6 @@ public class SimpleCommandMapping implements CommandMapping {
|
||||
'}';
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return SimpleCommandMapping.class;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -191,7 +191,5 @@ public class DispatcherNode {
|
||||
return dispatcher;
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return DispatcherNode.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -177,8 +177,6 @@ public class ContextArgumentStack implements ArgumentStack {
|
||||
return context;
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return ContextArgumentStack.class;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -198,7 +198,5 @@ public class ParameterData extends SimpleParameter {
|
||||
}
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return ParameterData.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -293,8 +293,6 @@ public class ParametricBuilder {
|
||||
this.defaultCompleter = defaultCompleter;
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return ParametricBuilder.class;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -352,7 +352,5 @@ public class ParametricCallable extends AParametricCallable {
|
||||
}
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return ParametricCallable.class;
|
||||
}
|
||||
|
||||
}
|
@ -151,7 +151,5 @@ public class StringArgumentStack implements ArgumentStack {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return StringArgumentStack.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -89,7 +89,5 @@ public class Fragment {
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return Fragment.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -47,7 +47,5 @@ public class CommandListBox extends MessageBox {
|
||||
return this;
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return CommandListBox.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -109,8 +109,6 @@ public class CommandUsageBox extends StyledFragment {
|
||||
append(box);
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return CommandUsageBox.class;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,5 @@ public class MessageBox extends StyledFragment {
|
||||
return contents;
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return MessageBox.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user