wiki:itemmods:api

这是本文档旧的修订版!


API

原Wiki页面:https://github.com/CodeDoctorDE/ItemMods/wiki/api

The latest build can you find here

  • You can use maven to get the dependency or can use the jars in the github actions.
    • For maven please use this:
      <repositories>
           <repository>
               <id>codemc-repo</id>
               <url>https://repo.codemc.org/repository/maven-public/</url>
           </repository>
       </repositories>
       
       <dependencies>
           <dependency>
               <groupId>com.github.codedoctorde</groupId>
               <artifactId>ItemMods</artifactId>
               <version>1.4-SNAPSHOT</version>
           </dependency>
       </dependencies>
  • The documentation about the api can you find here. Please use the classes in the api package. The ItemModsApi instance can you get with ItemMods.getPlugin().getApi()
  • Custom events:
    • CustomBlockPlaceEvent - self explained :D
    • CustomBlockBreakEvent - self explained :D
你需要登录发表评论。
  • wiki/itemmods/api.1612755308.txt.gz
  • 最后更改: 2021/02/08 11:35