-
Notifications
You must be signed in to change notification settings - Fork 12
Deprecated and Removed
- Deprecated in 0.1.x
- Deprecated in 0.4.x
- Deprecated in 0.5.x
- Deprecated in 0.6.x
- Deprecated in 0.7.x
- Deprecated in 0.8.x
These will be removed in 0.10.0.
| Name & Link | Replacement |
|---|---|
| FluidVolume.areFullyEqual() | Replace with a normal "Objects.equals()" check. |
These will be removed in 0.10.0.
| Name & Link | Replacement |
|---|---|
| FixedItemInvView.offerSelfAsAttribute() | Offer the inventory to the AttributeList directly. |
| SimpleFixedItemInvInsertable | Use GroupedItemInvFixedWrapper instead. |
| SimpleFixedItemInvExtractable | Use GroupedItemInvFixedWrapper instead. |
| FixedFluidInvView.offerSelfAsAttribute() | Offer the inventory to the AttributeList directly. |
| SimpleFixedFluidInvInsertable | Use GroupedItemInvFixedWrapper instead. |
| SimpleFixedFluidInvExtractable | Use GroupedItemInvFixedWrapper instead. |
These will be removed in 0.10.0.
| Name | Replacement |
|---|---|
| Attribute.appendCustomAdder() | It's been renamed to appendBlockAdder |
| new Attribute(Class, CustomAttributeAdder) | Call the constructor, then appendBlockAdder instead of a single constructor call. |
| new DefaultedAttribute(Class, T, CustomAttributeAdder | Call the constructor, then appendBlockAdder instead of a single constructor call. |
| LimitedFixedItemInv.ItemSlotLimitRule.noInsertionLimits | Use noInsertionFilter instead as it's less confusing. |
| SimpleFixedItemInv | Use either FullFixedItemInv or DirectFixedItemInv. (Full reasoning below - copied from the class javadoc). |
| DirectFixedItemInv.get(int) | This is unnecessary, as getInvStack (the interface method) no longer performs a copy. |
| DirectFixedItemInv.set(int, ItemStack) | This is unnecessary, as setInvStack (the interface method) no longer performs a copy. |
| FluidVolumeUtil.createItemInventoryInsertable | This has been replaced by the item-attribute system - just inline the method to use the new system. |
| FluidVolumeUtil.createItemInventoryExtractable | This has been replaced by the item-attribute system - just inline the method to use the new system. |
As of LBA 0.5.0 there's been a large change to how inventories work to be much closer to vanilla - inventories no longer return immutable stacks from FixedItemInvView.getInvStack(int), and 2 new sub-interfaces have been created to handle the different ways of using this, either ModifiableFixedItemInv (which exposes a markDirty() method just like vanilla Inventory does), or CopyingFixedItemInv (which returns copies of the internal ItemStack and supports complete filtering and listener capabilities).
You should replace this class with either:
-
FullFixedItemInvif you either need exact per-slot listening or the full filtration capabilities -
DirectFixedItemInvif you'd rather use a more vanilla oriented approach of being able to directly modify items in an inventory.
These will be removed in 0.10.0.
| Name | Replacement |
|---|---|
| ItemInvUtil.createPlayerInsertable | Moved to PlayerInvUtil.createPlayerInsertable |
| ItemInvUtil.referenceHand | Moved to PlayerInvUtil.referenceHand |
| ItemInvUtil.referenceGuiCursor | Moved to PlayerInvUtil.referenceGuiCursor |
| ItemInvUtil.insertItemIntoPlayerInventory | Moved to PlayerInvUtil.insertItemIntoPlayerInventory |
| FluidVolumeUtil.interactWith* | These 13 methods have all been moved to FluidInvUtil - just inline all of them to use the new class. |
| FluidTankInteraction.fromTank/intoTank | There's 2 new arguments for the constructor: both ItemContainerStatus, which inform the caller if the interaction even tested the ItemStack for validity. |
| FluidVolumeRenderer.renderSimpleFluid() | Use the version that takes two Sprite arguments - as it chooses which one to use based on the FluidRenderFace.flowing field. |
| ImplicitVanillaFluidVolumeRenderer (the whole class) | Use DefaultFluidVolumeRenderer instead, as it already does everything. |
| NormalFluidKey (the whole class) | This used to mean that this stored a minecraft Fluid, but that's no longer accurate. Instead raw/minecraft fluid access should be via FluidKey.getRawFluid() |
| NormalFluidVolume (the whole class) | SimpleFluidVolume (see NormalFluidKey above) |
| FluidInvAmountChangeListener | FluidInvAmountChangeListener_F |
| int amount* | FluidAmount* (See below for details) |
Previously LBA used 1620 (silk droplets) as a fixed denimonator for measuring fluid amounts, however in 0.6.0 fractions were introduced in the class FluidAmount. Conversion between 1620-based systems and fractions is in the methods FluidAmount.as1620()and FluidAmount.of1620().
A large number of methods used to take and return ints for fluid amounts, and all of them have an equivilent fraction-based method as well. In cases were the new method only returned a FluidAmount (and so is not allowed) it will of had _F appended to the name. In 0.9.0 all of the int-based methods will have their parameters replaced with FluidAmount, but the _F methods will be deprecated, and removed in 0.10.0.
These will be removed in 0.10.0.
| Name | Replacement |
|---|---|
| FluidVolume.merge0() | Override FluidVolume.mergeInternal instead, as then every method shares the FluidMergeResult. |
| FluidVolume.getTooltipText | Replaced by the more general getFullTooltip() method (and related methods). |
None of these have been removed yet, nor is the removal version known.
| Name | Replacement |
|---|---|
| ItemInvUtil.insertSingle | Moved to FixedItemInv.insertStack (inline the method) |
| ItemInvUtil.extractSingle | Moved to FixedItemInv.extractStack (inline the method) |
| ConstantItemFilter.ANYTHING_EXCEPT_EMPTY | ConstantItemFilter.ANYTHING (empty stack checking has been removed from filters to make a lot of things easier) |
| ConstantItemFilter.ONLY_EMPTY | ConstantItemFilter.NOTHING (see above) |
| ConstantItemFilter.of(boolean, boolean) | both arguments have been merged (see above) |
| FluidAmount.MIN_VALUE | MIN_BUCKETS is highly recommended instead, but if you must use the minimum possible then you can use ABSOLUTE_MINIMUM |
| FluidAmount.MAX_VALUE | MAX_BUCKETS is highly recommended instead, but if you must use the maximum possible then you can use ABSOLUTE_MAXIMUM |
| new FluidAmount(long whole) | FluidAmount.ofWhole |
| new BiomeSourcedFluidKey(FluidKeyBuilder) | new BiomeSourcedFluidKey(ColouredFluidKeyBuilder) |
| FluidVolumeUtil.insertSingle | FixedFluidInv.insertFluid |
| FluidVolumeUtil.extractSingle | FixedFluidInv.extractFluid |
| LimitedFixedFluidInv.noInsertionLimits | LimitedFixedFluidInv.noInsertionFilter |
todo todo | todo