⚡Electric Lib⚡ icon

⚡Electric Lib⚡ -----

Add energy to your world easily with a library



--- alpha library | use only if requested by other plugins ---

electriclibFinal2_small.png

Plugins that use these libraries:
  • no plugins​
Documentation
- me.moneyghost.electriclib.Electric.registerBlock(Block block) = register a electric block (ElectricBlock) and get it.
- me.moneyghost.electriclib.Electric.getElectricBlock(Block block) = get the electric block (ElectricBlock).
- me.moneyghost.electriclib.Electric.removeBlock(Block block) = remove the electric block (ElectricBlock).
- me.moneyghost.electriclib.Electric.isRegistered(Block block) = get if the block is registered.
- me.moneyghost.electriclib.Electric.updateList() = save Electric Data.
- me.moneyghost.electriclib.ElectricBlock#getElectricity() = get electricity level. (Default: 0)
- me.moneyghost.electriclib.ElectricBlock#setElectricity(int amount) = set electricity level.
- me.moneyghost.electriclib.ElectricBlock#getInputFace() = get a list of BlockFaces that are set to input. (Default: Null)
- me.moneyghost.electriclib.ElectricBlock#setInputFace(HashSet<BlockFace> inputFace) = set a list of BlockFaces that are set to input.
- me.moneyghost.electriclib.ElectricBlock#serialize() = W.I.P.
- me.moneyghost.electriclib.ElectricBlock#getLocation() = get location of ElectricBlock
- me.moneyghost.electriclib.ElectricBlock#getMaxElectricity() = get max electricity level. (Default: Integer.MAX_VALUE)
- me.moneyghost.electriclib.ElectricBlock#setMaxElectricity(int maxelectricity) = set max electricity level.
- me.moneyghost.electriclib.ElectricBlock#getPercentageElectricity() = get the percentage of the electricity.
- me.moneyghost.electriclib.ElectricBlock#addElectricity(int amount) = add an amount of electricity. (the rest will be returned)
- me.moneyghost.electriclib.ElectricBlock#removeElectricity(int amount) = remove an amount of electricity. (the rest will be returned)
Resource Information
Author:
----------
Total Downloads: 65
First Release: Jul 27, 2021
Last Update: Jul 27, 2021
Category: ---------------
All-Time Rating:
0 ratings
Find more info at discord.gg...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings