aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java
AgeCommit message (Collapse)Author
2022-07-23add(api/enums): particle and sound effect enumerations (#1154)Léa Gris
* add(api/enums): particle and sound effect enumerations - Adds new GregTech API enumerations: - `ParticleFX`: Enumerates known EntityFX particles. - `SoundResource`: Enumerates known sounds with, id and ResourceLocation. - Refactors code to use the new enumerations instead of string literals. - Uses `ParticleFX` and `onRandomDisplayTick` to improve or implement new particle effects for these machines: - BBF: Adds random flames in front of the firebox. - Steam machines: Changes pressure-exhaust particles to white vapour, rather than dark smoke. - Magic Energy Absorber: Adds random effect, of absorbed magical purple particles, by the EnderDragon Egg siphon. - Forge Hammer: Adds sparse random sparks, ejected from the main face.
2022-07-12Report crash while updateEntity to FML log as well (#1126)miozune
2022-04-21Fix machine rain exploding in biomes that does not have visual rains (#1026)Glease
* Fix machine rain exploding in biomes that does not have visual rains * update buildscript * Add missing boolean negation
2022-04-18Multitileentity precursor (#963)Jason Mitchell
* Refactors * Refactor CoverableTileEntity a bit more, pull out a CommonMetaTileEntity * Add an IDebugableTileEntity interface instead of checking various subclasses * Move more redstone related things to CoverableTileEntity * Add IGTENet * Final and dead code removal * Address a few comments, fix a few comments, remove some more dead code, and add some more finals. * fix bad rebase
2022-03-31Make gregtech machines mark the chunk they're in as dirty on updates (#1001)Jakub Szewczyk
* Make gregtech machines mark the chunk they're in as dirty on updates * Avoid any potential NPE in markDirty * Mark dirty on GT tool use (screwdriver/wrench/etc) * Fix multiblocks not marking hatches/buses as dirty too
2022-02-03Basic Machine NEI Power Tiers (#914)YannickMG
* Add IntelliJ .shelf folder to .gitignore * Fixing GT_GuiTooltip bug I introduced * Deprecated superfluous String trans methods. * Add Power class to compute and describe power usage * trans -> GT_Utility.trans Removed absent param from Javadoc * Add Power to BasicMachine and use it for power calculations * Steam BasicMachine rework Have Bronze and Steel tier override Power with appropriate SteamPower Make Bronze machines explicitly tier 1 Make Steel machines explicitly tier 2 Defined recipe list and bricked status for each machine Unified checkRecipe uses machine's recipe list and Power * Raised NEI dependency to 2.2.5 * Defining NEI transfer rect in individual UIs Using a new interface called from GT_RectHandler * Code cleanup & minor refactor * Add power field to NEI Default Handler Add method to create Power object from the recipe map * Display power tier in NEI handler name * User Power to draw NEI Handler description * Enable filtering handler recipes using Power * Repurposing aBricked parameter into aHighPressure To fix my previous faulty method of setting mTier * Must call getCache to get recipes properly. * Better communicate NEI Overclock info
2022-01-30Waila handling was all in one place, distribute it now that it's in GT5u ↵Jason Mitchell
proper. (#907)
2022-01-23AE2 Cable facade as cover (#887)Glease
* initial work on facade covers * fix colorMultiplier also removed derp * Clean up drop cover texture reset code What was I thinking actually? Send a packet to reset client states? * Fix cover display stack
2021-12-30Refactors for easier reading (#839)Jason Mitchell
* Refactors * Common functionality to base classes * GT Pre/Postload broken into more modular pieces * Extract common (mainly cover related) functionality from BaseMetaTileEntity & BaseMetaPipeEntity
2021-12-18Fix derp in BaseMetaPipeEntity during git merge (#824)Glease
Also added a bunch of fallback overrides to GT_Cover_None in the case of my stupid programming errors again
2021-12-17Fix cover data not resetting on clientGlease
2021-12-16Fix oversight in cover NBT migrationGlease
2021-12-01Add a new ghost slot to single block machines for config circuitsGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-11-27Merge pull request #755 from GTNewHorizons/patch-outbound-loss-reduceMartin Robertz
Reduce innate outbound loss by one tier
2021-11-26Reduce innate outbound loss by one tierGlease
This will make LV power networks less annoying to build Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-11-23centralized pollution for GT multiesboubou_19
2021-11-21Makes it not crash if someone calls in from UNKNOWN directionGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-11-17Rename GT_CoverBehavior_New to GT_CoverBehaviorBaseGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-11-17convert cover data storage to a full nbt tagGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-10-23Try to use locale formattingD-Cysteine
* Also format some more of the portable scanner's output
2021-10-22Try start processing immediately upon manual fluid manipulationGlease
2021-08-01Manual mergingTimeConqueror
2021-08-01Merge branch 'experimental' into code-improvementsAndrey
2021-08-01Improved readability of setBlockEventTimeConqueror
2021-08-01Improved readability of BaseMetaTileEntity receiveClientEventTimeConqueror
2021-07-30Fixes related to coil hint blocksGlease
Also updates StructureLib to fix invisible block hint and pulled the utility methods up. Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30Implement IConstructable for demo multisGlease
2021-07-30Initial StructureLib integrationGlease
2021-07-03Remove unnecessary redstone state query for coversGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-02remove debug codekorneel vandamme
2021-06-21fix NPE/infinit loop and small refractoringkorneel vandamme
2021-06-16add graph network to pipes and implement it for powerkorneel vandamme
2021-05-24feat(glow): iconset machines glow supportLéa Gris
- Add glow support for all sides and states of iconset machines (same as with basicmachines). Automated code cleanup with IDEA of: - Optiimise all imports (remove unused, sort) - Reorder all modifiers to the canonical preferred order (as stated in the Java Language Specification) - Add all missing @Override annotations
2021-05-21fix(render): move new textures rendering to new packageLéa Gris
Old textures rendering are kept in api/objects for backward compatibility. The old textures rendering does not handle glow textures or independant inventory tessellation. The old textures will only work with the old GT_Renderer_Block class New textures rendering with own tessellation in inventory and handling of glow emisssive textures are moved to the api/render package. These must not be used with the Old GT_Renderer_Block class or it will crash with: Already Tessellating Exception from the Tessellator class
2021-03-30Updated to use proper naming conventions.charles
2021-03-30Made it so that machine control covers disable themselves when thecharles
machine runs out of energy
2021-03-24feat(cover): hide covers when holding a soldering-ironLéa Gris
2021-03-20feat(cover): handles transparent coversLéa Gris
Add support for transparent covers (glass plate) on all GT Machines: - See pipes, wires, cables through transparent covers - Layer transparent covers over full-block pipes and machines
2021-03-10Correctly release/reuse channel after ME bus removal and reconnectrepo_alt
2021-01-19ME output busrepo_alt
2020-12-26Machine Block Update changesJason Mitchell
* Conditionally trigger an update on front facing (Needed for pipelines) * Use a queue instead of recursion
2020-10-01worldObj.getPrecipitationHeight moved to variablekaziu687
2020-10-01Update BaseMetaTileEntity.javakaziu687
Fixes problem that may cause explosion on Thermos servers with load-chunks-on-request: false When machine stays at the edge of loaded chunk (where siblings is not loaded) worldObj.getPrecipitationHeight will return -1 (cuz chunk wont be loaded on request). Machine will explode even if there is a roof.
2020-08-29Move neighbour update to BaseTileEntitymoller21
2020-08-25Redstone, power, strong, signal, covermoller21
2020-08-01Fix batteries in machines chugging cpu to look up recipes.moller21
2020-07-17Fixed average EU input/output displayrepo_alt
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/5472
2020-07-17Transformer not change visually when mode changes to step uprepo_alt
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/5420
2020-05-10Merge pull request #281 from moller21/coverguis2Martin Robertz
Cover GUI's take 2
2020-05-10Cover GUI: added fluid regulator, finished open on shiftrightclick.moller21