mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 22:45:09 +00:00
ScriptEntity:
-Added getEntityId() function -Moved getUniqueId() function ScriptWorld: -Added getPlayerByUUID(uuidstring) function -Added several functions from World and WorldServer: isBlockFreezable,isBlockFreezableNaturally,canBlockFreeze,canBlockFreezeBody,canSnowAt,canSnowAtBody,getTopBlock,getHeightValue,getChunkHeightMapMinimum,getBlockMetadata,setBlockMetadataWithNotify,canBlockSeeTheSky,getFullBlockLightValue,getBlockLightValue,playSoundAtEntity,playSoundToNearExcept,getEntityByID,spawnEntityInWorld,getClosestPlayerToEntity,getClosestPlayer,getClosestVulnerablePlayerToEntity,getClosestVulnerablePlayer,countEntities,setTileEntity,removeTileEntity,isBlockFullCube,getSeed,setSpawnLocation,canLightningStrikeAt,isBlockHighHumidity ScriptTileEntity: Added a ScriptTileEntity class for MC Tile Entities, with nearly all its functions. ScriptBlock: -Added getTileEntity() and setTileEntity() functions using the new ScriptTileEntity class as a return value and parameter respectively. API: -Added playSoundAtEntity and playSoundToNearExcept functions. -Added set/getMOTD() functions.
This commit is contained in:
1 parent
80e3c075c7
commit
bfd872a239
7 files changed
+332
-5
No files matched your search
@@ -0,0 +1,33 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.WorldServer;
|
||||
import noppes.npcs.scripted.NpcAPI;
|
||||
import noppes.npcs.scripted.ScriptBlock;
|
||||
import noppes.npcs.scripted.ScriptWorld;
|
||||
|
||||
public interface ITileEntity {
|
||||
int getBlockMetadata();
|
||||
|
||||
ScriptWorld getWorld();
|
||||
|
||||
TileEntity getMCTileEntity();
|
||||
|
||||
void readFromNBT(INbt nbt);
|
||||
|
||||
double getDistanceFrom(double x, double y, double z);
|
||||
|
||||
ScriptBlock getBlockType();
|
||||
|
||||
boolean isInvalid();
|
||||
|
||||
void invalidate();
|
||||
|
||||
void validate();
|
||||
|
||||
void updateContainingBlockInfo();
|
||||
|
||||
INbt getNBT();
|
||||
}
|
||||
Reference in new issue
Block a user