Finished (almost) everything !items
This commit is contained in:
parent
8eed901fcb
commit
a9507b3b68
145 changed files with 1261 additions and 2156 deletions
|
@ -3,7 +3,6 @@ package WayofTime.alchemicalWizardry.api.event;
|
|||
import net.minecraftforge.fml.common.eventhandler.Cancelable;
|
||||
import net.minecraftforge.fml.common.eventhandler.Event;
|
||||
|
||||
|
||||
@Cancelable
|
||||
public class AddToNetworkEvent extends Event
|
||||
{
|
||||
|
|
|
@ -8,45 +8,43 @@ import net.minecraft.world.World;
|
|||
import net.minecraftforge.fml.common.eventhandler.Cancelable;
|
||||
import net.minecraftforge.fml.common.eventhandler.Event;
|
||||
|
||||
|
||||
/** Fired when a teleposer attempts to transpose two blocks. Use this to perform special cleanup or compensation,
|
||||
or cancel it entirely to prevent the transposition. */
|
||||
@Cancelable
|
||||
public class TeleposeEvent extends Event
|
||||
{
|
||||
public final World initialWorld;
|
||||
public final BlockPos initialPos;
|
||||
|
||||
public final World initialWorld;
|
||||
public final BlockPos initialPos;
|
||||
public final Block initialBlock;
|
||||
public final IBlockState initialState;
|
||||
|
||||
public final Block initialBlock;
|
||||
public final IBlockState initialState;
|
||||
public final World finalWorld;
|
||||
public final BlockPos finalPos;
|
||||
|
||||
public final World finalWorld;
|
||||
public final BlockPos finalPos;
|
||||
public final Block finalBlock;
|
||||
public final IBlockState finalState;
|
||||
|
||||
public final Block finalBlock;
|
||||
public final IBlockState finalState;
|
||||
|
||||
public TeleposeEvent(World wi, BlockPos posi, IBlockState statei, World wf, BlockPos posf, IBlockState statef) {
|
||||
initialWorld = wi;
|
||||
initialPos = posi;
|
||||
public TeleposeEvent(World wi, BlockPos posi, IBlockState statei, World wf, BlockPos posf, IBlockState statef)
|
||||
{
|
||||
initialWorld = wi;
|
||||
initialPos = posi;
|
||||
|
||||
initialState = statei;
|
||||
initialBlock = initialState.getBlock();
|
||||
initialState = statei;
|
||||
initialBlock = initialState.getBlock();
|
||||
|
||||
finalWorld = wf;
|
||||
finalPos = posf;
|
||||
finalWorld = wf;
|
||||
finalPos = posf;
|
||||
|
||||
finalState = statef;
|
||||
finalBlock = finalState.getBlock();
|
||||
}
|
||||
finalState = statef;
|
||||
finalBlock = finalState.getBlock();
|
||||
}
|
||||
|
||||
public TileEntity getInitialTile() {
|
||||
public TileEntity getInitialTile() {
|
||||
return initialWorld.getTileEntity(initialPos);
|
||||
}
|
||||
|
||||
public TileEntity getFinalTile() {
|
||||
public TileEntity getFinalTile() {
|
||||
return finalWorld.getTileEntity(finalPos);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue