Fix #1153 crash from interface methods named getWorld

This commit is contained in:
mezz committed 2016-05-11 22:00:49 -07:00
1 parent 0ae2e36e90
commit 5cc181d4c7
43 files changed
+92 -133

No files matched your search

@@ -16,9 +16,8 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
import net.minecraft.util.math.BlockPos;
import forestry.api.greenhouse.IInternalBlock;
import forestry.api.greenhouse.IInternalBlockFace;
@@ -27,14 +26,11 @@ public class InternalBlock implements IInternalBlock {
@Nonnull
private final BlockPos pos;
@Nonnull
private final World world;
@Nonnull
private final List<IInternalBlockFace> faces = new ArrayList<>(6);
@Nullable
private final IInternalBlock root;
public InternalBlock(@Nonnull World world, @Nonnull BlockPos pos) {
this.world = world;
public InternalBlock(@Nonnull BlockPos pos) {
this.pos = pos;
this.root = null;
@@ -43,8 +39,7 @@ public class InternalBlock implements IInternalBlock {
}
}
public InternalBlock(@Nonnull World world, @Nonnull BlockPos pos, EnumFacing rootFace, @Nonnull IInternalBlock root) {
this.world = world;
public InternalBlock(@Nonnull BlockPos pos, EnumFacing rootFace, @Nonnull IInternalBlock root) {
this.pos = pos;
this.root = root;
@@ -53,12 +48,6 @@ public class InternalBlock implements IInternalBlock {
}
}
@Nonnull
@Override
public World getWorld() {
return world;
}
@Nonnull
@Override
public BlockPos getPos() {