mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 20:44:44 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
c22c5f9d79
commit
afb5f1d645
60 files changed
+592
-509
No files matched your search
@@ -11,7 +11,6 @@ public interface IBlock {
|
||||
int getZ();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return An IPos object with the block's XYZ position.
|
||||
*/
|
||||
IPos getPosition();
|
||||
@@ -19,7 +18,7 @@ public interface IBlock {
|
||||
/**
|
||||
* Moves the block to a new position in the given world. The old position is replaced with air.
|
||||
*
|
||||
* @param pos The new position of the block
|
||||
* @param pos The new position of the block
|
||||
* @param world The destination world of the block
|
||||
* @return Whether the block was successfully placed
|
||||
*/
|
||||
@@ -32,7 +31,6 @@ public interface IBlock {
|
||||
boolean setPosition(int x, int y, int z);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return The block name as it appears in the block registry. Return example: "minecraft:stone"
|
||||
*/
|
||||
String getName();
|
||||
@@ -45,63 +43,53 @@ public interface IBlock {
|
||||
boolean isAir();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param blockName The name of the block to be set in place of this block.
|
||||
* @return The new block set in place of this block as an IBlock object.
|
||||
*/
|
||||
IBlock setBlock(String blockName);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param block Input IBlock object to replace this block.
|
||||
* @return The new block set in place of the previous block.
|
||||
*/
|
||||
IBlock setBlock(IBlock block);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return True if the block can contain items like a chest does.
|
||||
*/
|
||||
boolean isContainer();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return The container object of this block. If this block is not a container, an exception will be thrown.
|
||||
*/
|
||||
IContainer getContainer();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return An IWorld object of the world this block is in.
|
||||
*/
|
||||
IWorld getWorld();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return True if this block has a tile entity. Blocks with custom data like signs, player skulls, chests, etc. will have tile entities.
|
||||
*/
|
||||
boolean hasTileEntity();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return An ITileEntity object which can modify this block's tile entity.
|
||||
*/
|
||||
ITileEntity getTileEntity();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param tileEntity Replaces this block's tile entity based on the data given by this parameter.
|
||||
*/
|
||||
void setTileEntity(ITileEntity tileEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return An obfuscated MC object for the block's tile entity.
|
||||
*/
|
||||
TileEntity getMCTileEntity();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return An obfuscated MC block object.
|
||||
*/
|
||||
Block getMCBlock();
|
||||
@@ -109,13 +97,11 @@ public interface IBlock {
|
||||
String getDisplayName();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return An INbt object which can modify the block's tile entity's NBT data.
|
||||
*/
|
||||
INbt getTileEntityNBT();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param maxVolume The volume threshold to determine whether this block's bounding box collides, if it has one.
|
||||
* @return Whether this block can be collided with
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user