Closed
Conversation
e3e7e45 to
42ee003
Compare
Modifiers are no longer additive instead modifier groupings are The damage values for a modifier now return a Tuple of the value before and after it was applied Adds missing DamageModifierTypes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SpongeAPI | Sponge
API Breakages:
Keys.ACCELERATIONfor projectile is nowdouble(fromVector3d)AttributeModifiernow uses aResourceKeyinstead ofnameanduniqueIdAbstractModifierEvent(AttackEntityEvent/DamageEntityEvent)Tuplewith the damage before and after the modifier was appliedRecipenow has a generic type for itsRecipeInputRecipeInputis required to match a recipeRecipeManageris no longer possibleRecipeInput.Factoryis available to build inputs from ItemStacksFurnaceBlockEntity,Campfire,CraftingGridInventoryprovide a way to get their respectiveRecipeInputKeys.KNOCKBACK_STRENGTHis now for a custom knockback value bypassing the calculation using weapon enchantment and knockback resistance of the entity.PortalTypeandPortalTypesare replaced byPortalLogicsee below.Portalno longer provides the destination. You can calculate it using itsPortalLogicif present.TwoDimensionalPortaldropped in favour ofPortal#boundingBox()returning anOptional<AABB>Keys.NEXT_ENTITY_TO_SPAWNfor spawners is now just aEntityArchetypeinstead ofWeightedSerializableObjectwith weight of 1Additions
EnchantmentTypeTagsInvokePortalEvent.Entercalled when touching a portal block.Preparecalled before invoking thePortalLogic.Executecalled after finding/generating the portal exit. This is also aChangeEntityWorldEvent.RepositionPortalLogicreplaces most ofPortalTypePortalLogic.Factoryprovides the vanilla portal logic in form of:PortalExitCalculatorcalculates the exit location using the origin location and entity (may return empty to make the teleport fail)PortalFinderfinds a portal around a calculated exit location (may return empty to generate a portal instead)PortalGeneratorgenerates a new portal at a calculated exit location (may return empty to make the teleport fail)Keys.PORTALandKeys.PORTAL_LOGICto get the current active portal/portal logicKeys.FOOD_CONVERTS_TOKeys.AUTO_SPIN_ATTACK_DAMAGEKeys.AUTO_SPIN_ATTACK_WEAPONTrialSpawnerCrafter