Geyser/core/src/main/java/org/geysermc/geyser/registry
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
..
loader Feature: Camera/Input locking API (#4332) 2024-01-31 11:21:06 +01:00
mappings Fix: Workaround for recipes involving custom items to show up in the recipe book (#4484) 2024-03-10 23:38:38 +01:00
populator Feature: Structure block translation (#4521) 2024-04-17 23:21:25 +02:00
provider Changes 2022-07-09 18:39:02 -04:00
type Feature: Structure block translation (#4521) 2024-04-17 23:21:25 +02:00
AbstractMappedRegistry.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
ArrayRegistry.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
BlockRegistries.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
DeferredRegistry.java Allow deferred registries to be loaded/set more than once (#3892) 2023-06-18 17:45:25 -04:00
IRegistry.java Exposing resourcepack loading to api (#3696) 2023-06-16 20:39:53 -05:00
IntMappedRegistry.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
MappedRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
PacketTranslatorRegistry.java Support Java 1.20.2 (#4112) 2023-09-29 17:14:49 -04:00
Registries.java Add support for custom blocks and skulls (#3505) 2023-08-21 16:04:08 -07:00
Registry.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00
SimpleMappedRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
SimpleRegistry.java We're in 2022 now 2022-01-01 20:03:05 +01:00
VersionedRegistry.java Project wide syntax/annotation cleanup (#4238) 2023-12-05 18:54:42 -05:00