From b36b5202328066b4649db0e12c4c6348e2baecbb Mon Sep 17 00:00:00 2001 From: Unknown <lemadec.fr@gmail.com> Date: Sat, 13 Jul 2019 21:02:11 +0200 Subject: [PATCH] Improved IBlockTransformer documentation --- src/main/java/cr0s/warpdrive/api/IBlockTransformer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/cr0s/warpdrive/api/IBlockTransformer.java b/src/main/java/cr0s/warpdrive/api/IBlockTransformer.java index 6c3cf915..24aeeb8d 100644 --- a/src/main/java/cr0s/warpdrive/api/IBlockTransformer.java +++ b/src/main/java/cr0s/warpdrive/api/IBlockTransformer.java @@ -16,6 +16,7 @@ import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public interface IBlockTransformer { + // This interface only applies to server side, it won't be used client side. // Return true if this transformer is applicable to that block. boolean isApplicable(final Block block, final int metadata, final TileEntity tileEntity); @@ -46,6 +47,7 @@ public interface IBlockTransformer { // Called when placing back a ship in the world, if saveExternals() returned non-null for that block. // Use this to restore external data from the ship schematic, right after block & tile entity placement. + // Use this to send custom client notification messages after the block was placed. // Use priority placement to ensure dependent blocks are placed first. void restoreExternals(final World world, final BlockPos blockPos, final IBlockState blockState, final TileEntity tileEntity,