EvenBetterArcheology unspecified
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantment Class Referenceabstract

A generic class representing an enchantment that is only available as loot. More...

Inheritance diagram for de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantment:
Inheritance graph
[legend]
Collaboration diagram for de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantment:
Collaboration graph
[legend]

Public Member Functions

boolean isAvailableForEnchantedBookOffer ()
 By default, the enchantment is not available from the enchantment table. More...
 
boolean isTreasure ()
 Block the enchantment from being fishable. More...
 
boolean isAvailableForRandomSelection ()
 Block the enchantment from being randomly selected. More...
 

Protected Member Functions

 ArtifactEnchantment (String enchantmentName, EnchantmentTarget target, EquipmentSlot... slotTypes)
 Create a new artifact enchantment. More...
 

Protected Attributes

final String NAME
 

Detailed Description

A generic class representing an enchantment that is only available as loot.

It also includes a registry for all artifact enchantments and can generate a loot table for them.

Constructor & Destructor Documentation

◆ ArtifactEnchantment()

de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantment.ArtifactEnchantment ( String  enchantmentName,
EnchantmentTarget  target,
EquipmentSlot...  slotTypes 
)
protected

Create a new artifact enchantment.

Parameters
enchantmentNamethe name of the enchantment
targetthe target of the enchantment
slotTypesthe slot types of the enchantment @apiNote This will automatically be added to the list of artifact enchantments and the evenbetterarcheology tab It will also be registered in the game with the identifier "evenbetterarcheology:<enchantmentName>"

Member Function Documentation

◆ isAvailableForEnchantedBookOffer()

boolean de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantment.isAvailableForEnchantedBookOffer ( )

By default, the enchantment is not available from the enchantment table.

Returns
false

◆ isAvailableForRandomSelection()

boolean de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantment.isAvailableForRandomSelection ( )

Block the enchantment from being randomly selected.

Returns
false

◆ isTreasure()

boolean de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantment.isTreasure ( )

Block the enchantment from being fishable.

Returns
false

Member Data Documentation

◆ NAME

final String de.sakurajin.evenbetterarcheology.api.enchantment.ArtifactEnchantment.NAME
protected

The documentation for this class was generated from the following file: