Package fr.robie.machineengine.api.resource.fluid
package fr.robie.machineengine.api.resource.fluid
-
ClassDescriptionWhat a placed fluid does to an entity inside it (potion, damage, fire …).A kind of
FluidEffectthat definitions andfluids.ymlcan use by key, likeBehaviorTypefor machines.The items that hold a placed fluid.The fluid's bucket.A CraftEngine item MachineEngine generates (from a template, D36), tinted with the fluid.An existing CraftEngine item, e.g.No bucket: the fluid can't be picked up or poured by hand.How a placed fluid looks.What a placed fluid does when it meets other fluids: the first rule whoseFluidMixing.Selectormatches decides; without a match, both stop (FluidReaction.STOP).One rule: when the fluid already there matcheswith,reactiondecides.Which fluids a rule is about.Any fluid, plain water included.One fluid, by key (machineengine:fluid/waterfor plain water).Every fluid in a resource tag.How a placed fluid behaves in the world.What a source formed between two different fluids (or a fluid and plain water) becomes.What happens when a placed fluid flows into another fluid (or plain water): stop, replace it, turn into a block … Made by aFluidReactionTypefrom a definition, or written in code.A kind ofFluidReactionthat definitions andfluids.ymlcan use by key.Where a fluid's still or flowing texture comes from, for the resource pack MachineEngine builds (docs/FLUID_TYPES_PLAN.md §2.3).What a texture can read while the pack is built.A kind ofFluidTexturethat definitions andfluids.ymlcan use by key: a file, a recolored vanilla pattern, a generated pattern, or an addon's own generator.A fluid: aResourceTypein the global fluid category (D29) that also says how it exists in the world, looks, moves, mixes and affects entities (D47, docs/FLUID_TYPES_PLAN.md).How a placed fluid spreads, compared with water.How a fluid moves things inside it, compared with water (all factors 1 and no damping = water).Settings of fluids in the world (D46), inconfig.ymlunderworld-fluids.Whether a fluid and plain water may share a color area.Where a fluid meets water.How fluids get their look in the resource pack.Where a fluid can exist outside machines and pipes (docs/FLUID_TYPES_PLAN.md §2.2).