mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Added some documentation to a few interfaces for the javadoc.
This commit is contained in:
1 parent
648206f5ba
commit
fd1aa40456
4 files changed
+111
-11
No files matched your search
@@ -62,8 +62,8 @@ public class ScriptBlock implements IBlock {
|
||||
return this.block.isAir(this.world.getMCWorld(), getX(), getY(), getZ());
|
||||
}
|
||||
|
||||
public ScriptBlock setBlock(String name) {
|
||||
Block block = (Block)Block.blockRegistry.getObject(new ResourceLocation(name));
|
||||
public ScriptBlock setBlock(String blockName) {
|
||||
Block block = (Block)Block.blockRegistry.getObject(new ResourceLocation(blockName));
|
||||
if(block == null) {
|
||||
return this;
|
||||
} else {
|
||||
@@ -113,11 +113,11 @@ public class ScriptBlock implements IBlock {
|
||||
return this.tile != null;
|
||||
}
|
||||
|
||||
public ScriptTileEntity getTileEntity() {
|
||||
public ITileEntity getTileEntity() {
|
||||
return new ScriptTileEntity(this.tile);
|
||||
}
|
||||
|
||||
public void setTileEntity(ScriptTileEntity tileEntity){
|
||||
public void setTileEntity(ITileEntity tileEntity){
|
||||
world.setTileEntity(pos.getX(),pos.getY(), pos.getZ(),tileEntity);
|
||||
this.tile = tileEntity.getMCTileEntity();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user