Geyser/core/src/main/java/org/geysermc/geyser/util
chris 7a20a190a0
Feature: Structure block translation (#4521)
* ported camotoy's attempt of implementing structure blocks, removal of a few TODO's

* no more parsing of java structure templates

* Don't attempt to re-request structure size

* ensure we can load structures in even if we know the size

* init: send correct structure size/offset/rotation to java, not fully working yet

* restore offsets so we are sending correct values to the java server regarding where we want the structure to be placed

* something something mirror

* attempt at proper offsets for mirroring AND rotations. this was not fun at all

* rotation, mirror, offsetting all seem to work

* undo import changes

* fix NPE

* Proper handling of empty structures, ensure that we can clear the structure block outline when a zero vector was sent for structure size

* oops

* Update core/src/main/java/org/geysermc/geyser/session/cache/StructureBlockCache.java

Co-authored-by: rtm516 <rtm516@users.noreply.github.com>

* Update core/src/main/java/org/geysermc/geyser/translator/level/block/entity/StructureBlockBlockEntityTranslator.java

Co-authored-by: rtm516 <rtm516@users.noreply.github.com>

* Update core/src/main/java/org/geysermc/geyser/translator/protocol/bedrock/BedrockStructureBlockUpdateTranslator.java

Co-authored-by: rtm516 <rtm516@users.noreply.github.com>

* Update core/src/main/java/org/geysermc/geyser/translator/protocol/bedrock/BedrockStructureTemplateDataRequestTranslator.java

Co-authored-by: rtm516 <rtm516@users.noreply.github.com>

* consolidate java structure sending into one method

* fix merge conflict
---------

Co-authored-by: rtm516 <rtm516@users.noreply.github.com>
2024-04-17 23:21:25 +02:00
..
collection Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
AssetUtils.java Exposing resourcepack loading to api (#3696) 2023-06-16 20:39:53 -05:00
AttributeUtils.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
BlockEntityUtils.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
BlockUtils.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
ChunkUtils.java Support Bedrock 1.20.60 (#4415) 2024-02-06 20:11:17 +01:00
CooldownUtils.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
CpuUtils.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
DimensionUtils.java Feature: Camera/Input locking API (#4332) 2024-01-31 11:21:06 +01:00
EntityUtils.java Feature: Rework startup logic (#4377) 2024-02-14 12:50:50 +01:00
FileUtils.java Allow configuration of RakNet limits (#4532) 2024-03-31 21:42:31 -07:00
InteractionResult.java Support offhand interactions with entities 2022-02-24 22:49:10 -05:00
InteractiveTag.java Implement allay, plus some interaction fixes 2022-05-26 17:51:55 -04:00
InventoryUtils.java Feature: Structure block translation (#4521) 2024-04-17 23:21:25 +02:00
ItemUtils.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
JavaCodecUtil.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
LoginEncryptionUtils.java Remove Mojang account sign-in option (#4147) 2023-10-03 01:12:54 +02:00
LoopbackUtil.java Loopback exemption fixes (#3261) 2022-08-31 16:42:38 -04:00
MathUtils.java Add support for custom blocks and skulls (#3505) 2023-08-21 16:04:08 -07:00
Metrics.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
NewsHandler.java Updated to 1.19 2022-06-08 14:09:14 +02:00
PluginMessageUtils.java Support Java 1.20.2 (#4112) 2023-09-29 17:14:49 -04:00
SettingsUtils.java Fix potential issue with the settings form - coordinate showing might change while we are in the settings menu (#4324) 2023-12-04 01:44:06 +01:00
SignUtils.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
SoundUtils.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
StatisticFormatters.java Initial 1.19.40.24 Bedrock support 2022-10-18 19:04:02 -04:00
StatisticsUtils.java Add Item classes to partially replace ItemMapping. Part 1? 2022-12-29 15:10:40 -05:00
StructureBlockUtils.java Feature: Structure block translation (#4521) 2024-04-17 23:21:25 +02:00
VersionCheckUtils.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
WebUtils.java Fix user agent strings (#4562) 2024-04-12 13:12:38 +01:00