tutorial:api-lookup
This is an old revision of the document!
Fabric API Lookup API
Let's say that you want to make an energy reader tool that tells you how much energy a block contains. We will use the following interface, and learn how it can be used and implemented:
public interface EnergyContainer { /** * Return how many units of energy this block contains. */ int getStoredEnergy(); }
Using it
tutorial/api-lookup.1631127492.txt.gz · Last modified: 2021/09/08 18:58 by technici4n