Advertisement
80LK

CustomTileEntityFiller

Nov 5th, 2020
2,264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function CustomTileEntityFiller(){
  2. };
  3. //Register filler !Required!
  4. TileEntityFiller.register("custom_filler", CustomTileEntityFiller);
  5.  
  6. /**
  7.  * Filling TileEntity
  8.  * @param TE - NativeTileEntity | TileEntity
  9.  * @param random - java.lang.Random
  10.  */
  11. CustomTileEntityFiller.prototype.fill = function(TE, random){}
  12. /**
  13.  * Read from file
  14.  * @param json - object from File
  15.  */
  16. CustomTileEntityFiller.prototype.parseJSON = function(json){}
  17. /**
  18.  * Write in file
  19.  */
  20. CustomTileEntityFiller.prototype.toJSON = function(){
  21.     //Get json from parent filler. !Required!
  22.     let json = CustomTileEntityFiller.superclass.toJSON.apply(this);
  23.     //adding your data
  24.     return json;
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement