Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CustomTileEntityFiller(){
- };
- //Register filler !Required!
- TileEntityFiller.register("custom_filler", CustomTileEntityFiller);
- /**
- * Filling TileEntity
- * @param TE - NativeTileEntity | TileEntity
- * @param random - java.lang.Random
- */
- CustomTileEntityFiller.prototype.fill = function(TE, random){}
- /**
- * Read from file
- * @param json - object from File
- */
- CustomTileEntityFiller.prototype.parseJSON = function(json){}
- /**
- * Write in file
- */
- CustomTileEntityFiller.prototype.toJSON = function(){
- //Get json from parent filler. !Required!
- let json = CustomTileEntityFiller.superclass.toJSON.apply(this);
- //adding your data
- return json;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement