This commit is contained in:
Kam committed 2025-03-13 15:36:30 -04:00
1 parent c81e848895
commit c7a74a3e0e
59 files changed
+506 -592

No files matched your search

+4 -1
View File
@@ -4,6 +4,7 @@ import net.minecraft.tileentity.TileEntity;
public interface ITileEntity {
/**
*
* @return An integer representing the metadata of this block. Blocks with different states will
* return different values. For example, each stage of growth for a wheat crop will return a different value, each
* orientation of a stair block will return a different value, etc.
@@ -11,6 +12,7 @@ public interface ITileEntity {
int getBlockMetadata();
/**
*
* @return The world this tile entity is in.
*/
IWorld getWorld();
@@ -18,6 +20,7 @@ public interface ITileEntity {
void setWorld(IWorld world);
/**
*
* @return An obfuscated MC tile entity object.
*/
TileEntity getMCTileEntity();
@@ -33,7 +36,6 @@ public interface ITileEntity {
* @return The distance of this tile entity from the point given by the x, y, and z parameters.
*/
double getDistanceFrom(double x, double y, double z);
double getDistanceFrom(IPos pos);
/**
@@ -42,6 +44,7 @@ public interface ITileEntity {
IBlock getBlockType();
/**
*
* @return True if the tile entity is invalid, false otherwise.
*/
boolean isInvalid();