Closed Faithcaio closed 2 months ago
SpongeAPI | Sponge
Keys.ACCELERATION
double
Vector3d
AttributeModifier
ResourceKey
name
uniqueId
AbstractModifierEvent
AttackEntityEvent
DamageEntityEvent
Tuple
Recipe
RecipeInput
RecipeManager
RecipeInput.Factory
FurnaceBlockEntity
Campfire
CraftingGridInventory
Keys.KNOCKBACK_STRENGTH
PortalType
PortalTypes
PortalLogic
Portal
TwoDimensionalPortal
Portal#boundingBox()
Optional<AABB>
Keys.NEXT_ENTITY_TO_SPAWN
EntityArchetype
WeightedSerializableObject
EnchantmentTypeTags
InvokePortalEvent
.Enter
.Prepare
.Execute
ChangeEntityWorldEvent.Reposition
PortalLogic.Factory
PortalExitCalculator
PortalFinder
PortalGenerator
Keys.PORTAL
Keys.PORTAL_LOGIC
Keys.FOOD_CONVERTS_TO
Keys.AUTO_SPIN_ATTACK_DAMAGE
Keys.AUTO_SPIN_ATTACK_WEAPON
TrialSpawner
Crafter
SpongeAPI | Sponge
API Breakages:
Keys.ACCELERATION
for projectile is nowdouble
(fromVector3d
)AttributeModifier
now uses aResourceKey
instead ofname
anduniqueId
AbstractModifierEvent
(AttackEntityEvent
/DamageEntityEvent
)Tuple
with the damage before and after the modifier was appliedRecipe
now has a generic type for itsRecipeInput
RecipeInput
is required to match a recipeRecipeManager
is no longer possibleRecipeInput.Factory
is available to build inputs from ItemStacksFurnaceBlockEntity
,Campfire
,CraftingGridInventory
provide a way to get their respectiveRecipeInput
Keys.KNOCKBACK_STRENGTH
is now for a custom knockback value bypassing the calculation using weapon enchantment and knockback resistance of the entity.PortalType
andPortalTypes
are replaced byPortalLogic
see below.Portal
no longer provides the destination. You can calculate it using itsPortalLogic
if present.TwoDimensionalPortal
dropped in favour ofPortal#boundingBox()
returning anOptional<AABB>
Keys.NEXT_ENTITY_TO_SPAWN
for spawners is now just aEntityArchetype
instead ofWeightedSerializableObject
with weight of 1Additions
EnchantmentTypeTags
InvokePortalEvent
.Enter
called when touching a portal block.Prepare
called before invoking thePortalLogic
.Execute
called after finding/generating the portal exit. This is also aChangeEntityWorldEvent.Reposition
PortalLogic
replaces most ofPortalType
PortalLogic.Factory
provides the vanilla portal logic in form of:PortalExitCalculator
calculates the exit location using the origin location and entity (may return empty to make the teleport fail)PortalFinder
finds a portal around a calculated exit location (may return empty to generate a portal instead)PortalGenerator
generates a new portal at a calculated exit location (may return empty to make the teleport fail)Keys.PORTAL
andKeys.PORTAL_LOGIC
to get the current active portal/portal logicKeys.FOOD_CONVERTS_TO
Keys.AUTO_SPIN_ATTACK_DAMAGE
Keys.AUTO_SPIN_ATTACK_WEAPON
TrialSpawner
Crafter