diff options
| author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-06-29 21:46:16 +1000 |
|---|---|---|
| committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-06-29 21:46:16 +1000 |
| commit | ebac3516aada8378ca10b78acf0f942440934e6c (patch) | |
| tree | 0f646b1945ab259ff42dd625ab03f4b1f14c6b89 /src/Java/gtPlusPlus/plugin/villagers/block | |
| parent | cccd154da5181349169a06219254b31489925f22 (diff) | |
| download | GT5-Unofficial-ebac3516aada8378ca10b78acf0f942440934e6c.tar.gz GT5-Unofficial-ebac3516aada8378ca10b78acf0f942440934e6c.tar.bz2 GT5-Unofficial-ebac3516aada8378ca10b78acf0f942440934e6c.zip | |
+ More Villager work.
+ Added framework for custom spawners.
Diffstat (limited to 'src/Java/gtPlusPlus/plugin/villagers/block')
| -rw-r--r-- | src/Java/gtPlusPlus/plugin/villagers/block/BlockGenericSpawner.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/plugin/villagers/block/BlockGenericSpawner.java b/src/Java/gtPlusPlus/plugin/villagers/block/BlockGenericSpawner.java new file mode 100644 index 0000000000..81e2d99999 --- /dev/null +++ b/src/Java/gtPlusPlus/plugin/villagers/block/BlockGenericSpawner.java @@ -0,0 +1,22 @@ +package gtPlusPlus.plugin.villagers.block; + +import gtPlusPlus.plugin.villagers.tile.TileEntityGenericSpawner; +import net.minecraft.block.BlockMobSpawner; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.world.World; + +public class BlockGenericSpawner extends BlockMobSpawner { + + public BlockGenericSpawner () { + + } + + /** + * Returns a new instance of a block's tile entity class. Called on placing the block. + */ + public TileEntity createNewTileEntity(World world, int meta) + { + return new TileEntityGenericSpawner(meta); + } + +} |
