API for registering custom block-state transform rules

オープン
#3,024 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
api

調査の方向性

Start by reading BlockTransformExtent and the referenced BlockBehaviour#rotate and #mirror entry points. Compare how WorldEdit currently handles known block-state semantics with the requested custom-property case. Done means agreeing on and implementing a public mechanism for mods or plugins to provide the needed transformation behavior.

索引モデルが issue の本文から書いたものです。

説明

status:accepted type:feature-request
The Problem

WorldEdit handles block rotation and flipping through BlockTransformExtent.

This works well for block states whose spatial semantics are already understood by WorldEdit, such as facing, axis, rails, stairs, directional connection properties, etc.

However, modded blocks may contain custom block-state properties whose spatial meaning cannot be inferred by WorldEdit.

For example:

example:machine[orientation=front_left]

The mod may know how this property should behave under a 90° rotation or mirror operation, but currently there does not appear to be a public API for supplying that transformation logic to WorldEdit.

A Solution

It would be useful to expose a public API allowing mods/plugins to register transformation logic for custom block states or properties.

Or use net.minecraft.world.level.block.state.BlockBehaviour#rotate and net.minecraft.world.level.block.state.BlockBehaviour#mirror instead.

Alternatives

No response

Anything Else?

No response

主要言語
Java
スター
3.5k
フォーク
981
平均マージ
2日 15時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EngineHub/WorldEdit のほかの issue

EngineHub/WorldEdit の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。