Class Module

java.lang.Object
ua.mcchickenstudio.opencreative.coding.modules.Module

public class Module extends Object

Module

This class represents a module, a code that can be pasted in developer world.

Modules are stored in ./modules/moduleID.yml files.

  • Constructor Details

    • Module

      public Module(int id)
  • Method Details

    • getOwner

      @NotNull public @NotNull UUID getOwner()
    • getOwnerName

      @NotNull public @NotNull String getOwnerName()
    • isOwner

      public boolean isOwner(@NotNull @NotNull org.bukkit.OfflinePlayer player)
    • getId

      public int getId()
    • getInformation

      @NotNull public @NotNull ModuleInfo getInformation()
    • place

      public boolean place(@NotNull @NotNull DevPlanet devPlanet, @NotNull @NotNull org.bukkit.entity.Player player)
      Builds code from module.
      Parameters:
      devPlanet - dev planet where module will be pasted.
      player - player who loads module.
      Returns:
      true - built module successfully, false - failed.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object