Commit graph

3200 commits

Author SHA1 Message Date
PepperCode1
bc0f349840 Simplify packet handling
- SimplePacketBase#handle now accepts Context instead of
Supplier<Context>
- SimplePacketBase#handle now returns boolean, which, if true, calls
Context#setPacketHandled(true)
2023-03-01 11:21:17 -08:00
simibubi
f9c2cdb5f7 Regenerate data cache 2023-02-25 14:39:01 +01:00
simibubi
f648881987 Merge leftovers 2023-02-25 14:32:51 +01:00
simibubi
d5db85df79 Merge branch 'mc1.18/0.5.1' into mc1.18/0.5.1-trackworks 2023-02-25 14:28:12 +01:00
simibubi
68eccd1d51 Don't open sesame
- Added door controls to elevator contact and train station UI
2023-02-25 14:15:31 +01:00
simibubi
a3e7dd5ced Merge leftovers 2023-02-24 22:10:57 +01:00
simibubi
a75e3af0b0 Merge branch 'mc1.18/dev' into mc1.18/0.5.1 2023-02-24 22:10:33 +01:00
PepperCode1
42675f9511 Clean up and optimize copycat models
- Rename ITransformableTE -> ITransformableBlockEntity
2023-02-24 12:37:41 -08:00
PepperCode1
783cd126f7 Renaming and getters
- Rename AllBlockPartials -> AllPartialModels
- Make AllPackets.channel private and use getter method instead
- Make config fields in AllConfigs private and use getter methods
instead
- Optimize SyncedBlockEntity#sendData
2023-02-23 16:05:22 -08:00
PepperCode1
6265b6d295 Refactor custom rendered items
- CustomRenderedItemModel no longer holds partials
- Store partials as PartialModels in static fields in renderers
- Remove all CustomRenderedItemModel subclasses
- Remove CustomRenderedItemModelRenderer#createModel
- CustomRenderedItemModelRenderer is no longer generic
- Store items with custom renderers in CustomRenderedItems instead of
CustomRenderedItemModelRenderer
2023-02-22 20:34:37 -08:00
PepperCode1
e54ccb853a Use more generics in BE renderer and instance subclasses
- This makes it unnecessary to cast or store the passed BE in BE
renderers and instances
2023-02-22 14:45:06 -08:00
Cyvack
c907454be9
Overhaul to how encasing blocks works (#4458)
* Make Encasing utilize Interfaces

* Add Javadoc to IEncasable and IEncased interfaces

* Fix Weird block.block issues (No clue where those came from)

* Final Touch ups for now and made requirement for casing normal Block instead of CasingBlock

* Make requested changes

* Add more parameters for tryEncasing, for use in handleEncasing
Move handleEncasing to Encased Interface for more flexability

* Simplify and organize

- Rename:
  - Encasable -> EncasableBlock
  - Encased -> EncasedBlock
  - EncasableRegistry -> EncasingRegistry
- Remove EncasedBlock#setCasing
- Remove encasedBlock argument from EncasedBlock#handleEncasing
- Add Registrate builder transformer to EncasingRegistry for easy use

---------

Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com>
2023-02-22 13:09:11 -08:00
simibubi
3c1523d165 On a Roll
- Added a movement actor for easier track clearing and paving
2023-02-22 15:14:04 +01:00
simibubi
0dd8c3a4f1 Actually Tilted
- Unsightly amendments to the track graph for a smoother ride
2023-02-17 15:41:18 +01:00
simibubi
40f96b0038 You wrenched this? I wrenched this.
- Fix NPE in CarriageSyncData (Unknown cause)
- Fixed crash when applying text to display boards before they initialise
- Fixed incorrect itemstack remainders on Weighted Ejectors
- Other mods' wrenches now always behave like the Create wrench on IWrenchables
2023-02-02 12:14:25 +01:00
simibubi
1188071b9a
Update bug_report.yml 2023-01-30 21:34:56 +01:00
simibubi
5836ad4b82 Compatulations
- Fixed AE2 ore crushing compat recipes not using up-to-date modid/blocks
- Added Enchantment Descriptions
2023-01-29 23:42:08 +01:00
PepperCode1
7dc6fc7576 Advanced Tooltip Modification
- Finish refactor of item description tooltips and kinetic stat tooltips
- Change Palette to use Style instead of ChatFormatting
- Remove old code in TooltipHelper
- Add deferred registration capabilities to AttachedRegistry
- Move creative mode tabs to AllCreativeModeTabs
- Delete IItemHandlerModifiableIntermediate
- Delete StorageInterfaceMovement
2023-01-29 11:09:32 -08:00
simibubi
8cf282372c Tangled handlers
- Fixed server-side ticking code called from the render thread with forge 40.2.1 and up
2023-01-29 16:49:01 +01:00
grimmauld
52593a2ae9 fix nullability crash in Carriage.java 2023-01-29 16:07:19 +01:00
simibubi
157077b0ef Payload Overload
- Potential fix for players getting kicked while merging very large track networks
2023-01-28 21:04:25 +01:00
simibubi
9ab3b77294 Repeat offender
- Crashes that occur during schematic loading no longer terminate the server
- Fixed crash when creating new belts at existing chutes/funnels
- Fixed ghost items appearing on non-powered belts when extracted from
2023-01-24 15:29:59 +01:00
simibubi
6606a07d44 Remove Localisation templates 2023-01-24 14:12:04 +01:00
Zelophed
94be8b33b0
Merge pull request #4337 from triphora/patch-1
Fix Modrinth README badge
2023-01-20 16:00:31 +01:00
PepperCode1
f2b472f90d Renaming II
- TileEntity -> BlockEntity
2023-01-19 13:35:41 -08:00
triphora
31e2edc9bf
Fix Modrinth README badge
API v1 has been deprecated for over a year now and should no longer be used. There are two options for implementation of this fix:
- Use the dedicated shields.io route
- Update it to still manually construct the request with API v2

Each has advantages and disadvantages. Namely, the former no longer has the precise count, and the latter will need manual reconstruction every time that the API updates. Considering that this is down to the clock with how many deprecation warnings have gone out at this point, I believe the former is the best option, and thus the one I have implemented in this PR. If you believe the latter is better, feel free to request that change.
2023-01-19 14:59:25 -05:00
PepperCode1
624b2d71d1 Renaming I
- Container -> Menu
2023-01-17 13:37:18 -08:00
PepperCode1
3b4375f002 Merge branch 'concealed/remove-sections' into mc1.18/0.5.1
Conflicts:
	src/main/java/com/simibubi/create/AllBlocks.java
2023-01-17 13:09:35 -08:00
PepperCode1
aa69cbbeee AllSections are one
- Remove AllSections
- Refactor ItemDescription and parts of TooltipHelper
- Remove deprecated methods
- Rename CreateRegistry to AttachedRegistry
- Rename creative tab classes to match vanilla names
2023-01-16 20:08:26 -08:00
simibubi
79c59e5f3c Port new changes 2023-01-16 13:48:12 +01:00
simibubi
46c6856b6e Merge branch 'mc1.18/dev' into mc1.18/0.5.1 2023-01-16 13:43:51 +01:00
simibubi
85200fe48f Stop flying your vehicle 2023-01-15 15:07:45 +01:00
simibubi
405b7cbc36 Sunday's bugs
- Fixed Girder Encased Shafts getting ignored by the Schematicannon
- Fixed Belts not offering a valid item handler until their first tick
- NPE Guard in Funnel-Arm interaction
2023-01-15 13:18:43 +01:00
simibubi
f07574bff1 Oops, Empty Vault
- Fixed crash when curios inventory is configured to have no slots #4174
- Clean up frontier list when hitting unloaded chunks with hose pulley, potentially helps #4225
- Fixed vaults not marking chunks dirty when its inventory changes #4279
- Fixed players kicked for flying when standing on contraptions with a mount
2023-01-14 22:05:43 +01:00
Zelophed
a60036433b
Merge pull request #4312 from Creators-of-Create/l10n_crowdin_translations
New Crowdin translations
2023-01-14 16:13:39 +01:00
Crowdin Bot
b7e2970d3d New Crowdin translations by Github Action 2023-01-14 15:11:46 +00:00
Zelophed
7c426a7593
Update crowdin.yml 2023-01-14 15:49:09 +01:00
simibubi
e97b75ff72 Consider testing your PR
- Fixed compiler errors
- Maximum placement length of tracks and turns are now configurable (#4241)
- Adjusted validation guards and network visualisation to function with longer bends
- Track graph no longer shows nodes and edges on f3 unless configured to
- Kinetic blocks no longer show debug information on f3 unless configured to
2023-01-14 15:15:49 +01:00
simibubi
b502cd1c16 Burning through cake
- Superheated burn time of blaze cakes changed from 1000 to 3200 ticks
- Blaze cake insertion threshold matched to standard threshold
2023-01-14 14:08:08 +01:00
simibubi
f62815547e
Merge pull request #4307 from ewoudje/mc1.18/dev
Fix accuracy over network
2023-01-14 14:06:07 +01:00
simibubi
632152d28f
Merge pull request #4216 from Flemmli97/mc1.18/dev
Fix Heavy Damage Attribute not working
2023-01-14 13:54:50 +01:00
simibubi
318bac3704
Merge pull request #4213 from TropheusJ/mc1.18/contraption-data
Fix and improve handling of large contraption data
2023-01-14 13:53:59 +01:00
simibubi
a54c81861b
Merge pull request #4188 from OutCraft-Mods/patch-1
Update StationScreen to use InputConstants
2023-01-14 13:37:40 +01:00
PepperCode1
6e6b8550b8 Balanced Blaze Burners
- Adjust how and when blaze burners accept fuel
- Fix crash with Optifine when rendering a map
- Fix RenderType being used in common code
- Increment version
2023-01-13 16:47:33 -08:00
ewoudje
ecab13d0c4 Fix accuracy over network 2023-01-12 21:59:36 +01:00
simibubi
324729a68e Here, drink this
- Fixed signals not updating track graph when destroyed
- Added #deployable_drink tag for consumables that are not considered food
- Deployers can no longer consume potions or milk, and will instead feed players in their target area
- Fixed buttons in ponder not registering clicks near the edges #4130
- Fixed config UI tooltips including the empty "." comments used for toml 'formatting'
2023-01-05 14:09:38 +01:00
Flemmli97
dd0c49f8da
Fix Heavy Damage Attribute not working
Fix heavy damage attribute not correctly detecting damage since integer division
2022-12-24 16:46:52 +01:00
TropheusJ
5bf088c436 use Mods enum 2022-12-24 00:10:13 -05:00
TropheusJ
41697aca7f Improve handling of contraption data for syncing and minecart pickup
- filter out null contraptions in ContraptionRenderingWorld
- fix and unify contraption data size estimates
- add config for max contraption size for syncing
- Minecart pickup max is increased if XL Packets is loaded
2022-12-23 22:50:31 -05:00
OutCraft
66b495906b
Update StationScreen to use InputConstants
Updates the StationScreen class to use the Mojang InputConstants instead of numbers for the ENTER keypress detection
2022-12-20 20:27:57 +01:00