mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 19:39:37 +00:00
Improve code readability in binnie.extratrees package
This commit is contained in:
1 parent
adccdd181a
commit
96e4814ae3
225 files changed
+8968
-9306
No files matched your search
@@ -1,27 +1,29 @@
|
||||
package binnie.extratrees;
|
||||
|
||||
import binnie.core.block.TileEntityMetadata;
|
||||
import forestry.api.arboriculture.EnumWoodType;
|
||||
import forestry.arboriculture.tiles.TileWood;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.WorldProvider;
|
||||
import net.minecraft.world.WorldSettings;
|
||||
import net.minecraft.world.WorldType;
|
||||
import net.minecraft.world.WorldSettings.GameType;
|
||||
import net.minecraft.world.WorldType;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.storage.SaveHandler;
|
||||
|
||||
import forestry.api.arboriculture.EnumWoodType;
|
||||
import forestry.arboriculture.tiles.TileWood;
|
||||
import binnie.core.block.TileEntityMetadata;
|
||||
|
||||
public class FakeWorld extends World {
|
||||
public static FakeWorld instance = new FakeWorld();
|
||||
Block block;
|
||||
int metadata;
|
||||
TileEntity te;
|
||||
|
||||
protected Block block;
|
||||
protected int metadata;
|
||||
protected TileEntity te;
|
||||
|
||||
public FakeWorld() {
|
||||
super(null, "", null, new WorldSettings(Long.MAX_VALUE, GameType.NOT_SET, false, false, WorldType.FLAT), null);
|
||||
}
|
||||
|
||||
public ItemStack getWooLog() {
|
||||
if (te instanceof TileWood) {
|
||||
@@ -32,18 +34,14 @@ public class FakeWorld extends World {
|
||||
return null;
|
||||
}
|
||||
|
||||
public FakeWorld() {
|
||||
super((SaveHandler) null, "", (WorldProvider) null, new WorldSettings(Long.MAX_VALUE, GameType.NOT_SET, false, false, WorldType.FLAT), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlock(int p_147449_1_, int p_147449_2_, int p_147449_3_, Block block) {
|
||||
public boolean setBlock(int x, int y, int z, Block block) {
|
||||
this.block = block;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlock(int p_147465_1_, int p_147465_2_, int p_147465_3_, Block block, int metadata, int update) {
|
||||
public boolean setBlock(int x, int y, int z, Block block, int metadata, int update) {
|
||||
this.block = block;
|
||||
this.metadata = metadata;
|
||||
if (block.hasTileEntity(metadata)) {
|
||||
@@ -57,7 +55,7 @@ public class FakeWorld extends World {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlockToAir(int p_147468_1_, int p_147468_2_, int p_147468_3_) {
|
||||
public boolean setBlockToAir(int x, int y, int z) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -67,7 +65,7 @@ public class FakeWorld extends World {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTileEntity(int p_147455_1_, int p_147455_2_, int p_147455_3_, TileEntity p_147455_4_) {
|
||||
public void setTileEntity(int x, int y, int z, TileEntity tileEntity) {
|
||||
|
||||
}
|
||||
|
||||
@@ -77,12 +75,12 @@ public class FakeWorld extends World {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBlockMetadata(int p_72805_1_, int p_72805_2_, int p_72805_3_) {
|
||||
public int getBlockMetadata(int x, int y, int z) {
|
||||
return metadata;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlockMetadataWithNotify(int p_72921_1_, int p_72921_2_, int p_72921_3_, int metadata, int p_72921_5_) {
|
||||
public boolean setBlockMetadataWithNotify(int x, int y, int z, int metadata, int delay) {
|
||||
this.metadata = metadata;
|
||||
return true;
|
||||
}
|
||||
@@ -98,7 +96,7 @@ public class FakeWorld extends World {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity getEntityByID(int p_73045_1_) {
|
||||
public Entity getEntityByID(int id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user