mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-13 21:02:00 -05:00
Compare commits
210
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f54bb07269 | ||
|
|
0727243c94 | ||
|
|
eb3de3866f | ||
|
|
b31b4b5315 | ||
|
|
cd1c3b6304 | ||
|
|
35a2d15577 | ||
|
|
7ef2f69f90 | ||
|
|
fd28d653a2 | ||
|
|
5050b0f333 | ||
|
|
6b6835847e | ||
|
|
13565bc811 | ||
|
|
df120fd8b5 | ||
|
|
7e88a0da38 | ||
|
|
f11902627b | ||
|
|
bb10cf0d5b | ||
|
|
55bebded5f | ||
|
|
f728a121f7 | ||
|
|
2401035c89 | ||
|
|
174574d871 | ||
|
|
8a170a38c6 | ||
|
|
804dd0c3f0 | ||
|
|
ff31a2c997 | ||
|
|
2e549d651c | ||
|
|
7f9c79794e | ||
|
|
9d950517d9 | ||
|
|
4f4904928f | ||
|
|
4623163095 | ||
|
|
eb9098a546 | ||
|
|
e415f5e030 | ||
|
|
e3ba7b1dc8 | ||
|
|
05c2798ec0 | ||
|
|
02378ab582 | ||
|
|
67912d0827 | ||
|
|
e8a1f8fd68 | ||
|
|
1b9bf5c8e9 | ||
|
|
325f9071f0 | ||
|
|
d86d427405 | ||
|
|
2f1ce01e87 | ||
|
|
0d9bf08a23 | ||
|
|
e65c0765c6 | ||
|
|
ac9a1b2c72 | ||
|
|
0db5c93a3d | ||
|
|
2d602d68c1 | ||
|
|
2766dd30b1 | ||
|
|
03af8b4291 | ||
|
|
45fac22871 | ||
|
|
8c0b8396d6 | ||
|
|
bc68acd741 | ||
|
|
e13b4b3d41 | ||
|
|
a90108f43c | ||
|
|
dd585fda4d | ||
|
|
1b443e0ac8 | ||
|
|
29aeb6081b | ||
|
|
3bfa02fd65 | ||
|
|
09ee222482 | ||
|
|
22c663d327 | ||
|
|
4091869eed | ||
|
|
db93f621b3 | ||
|
|
7ec11b289e | ||
|
|
683e60c092 | ||
|
|
39887673fb | ||
|
|
dba08d2f25 | ||
|
|
be4b895635 | ||
|
|
b69f87e5ac | ||
|
|
f68a55a896 | ||
|
|
a0ded751dc | ||
|
|
a48059a2d4 | ||
|
|
06b855f0d3 | ||
|
|
56cab99fbf | ||
|
|
c927bd34ab | ||
|
|
b5eb5e0bfd | ||
|
|
4738ffe335 | ||
|
|
7ff575c99b | ||
|
|
ec0cd5c5ae | ||
|
|
6e1bb67eb1 | ||
|
|
cc7ee9aebd | ||
|
|
a2d844f71e | ||
|
|
6829d9e6cb | ||
|
|
03226a5838 | ||
|
|
fbec96a8fa | ||
|
|
abe55c5242 | ||
|
|
bd9daa8fba | ||
|
|
99867f8f92 | ||
|
|
c3ec3ae0c2 | ||
|
|
1a6b058db4 | ||
|
|
821b95fb15 | ||
|
|
b2d29a4fa8 | ||
|
|
46d4834e8e | ||
|
|
e3e060d74d | ||
|
|
d57def08de | ||
|
|
21a495c94c | ||
|
|
cc7b98af63 | ||
|
|
e63aca4337 | ||
|
|
16db242251 | ||
|
|
615e915d6b | ||
|
|
8097898e6d | ||
|
|
e8750e1c00 | ||
|
|
65ba985571 | ||
|
|
b3c6bcb83c | ||
|
|
a4b87cf896 | ||
|
|
bfb089d29d | ||
|
|
4728a906ed | ||
|
|
65c408ad2d | ||
|
|
2de3a930cc | ||
|
|
780818ff42 | ||
|
|
1dbde6108f | ||
|
|
1a7b626576 | ||
|
|
6e88e469fe | ||
|
|
371c96aa68 | ||
|
|
1d254ec493 | ||
|
|
60c8e563c2 | ||
|
|
ddb45eb495 | ||
|
|
a9d038271a | ||
|
|
6bc56abc92 | ||
|
|
288d43e108 | ||
|
|
ff3655a784 | ||
|
|
1c92a6c3a4 | ||
|
|
54024d3067 | ||
|
|
3d7125903d | ||
|
|
021713af28 | ||
|
|
769bc8c2a4 | ||
|
|
977da0dbb5 | ||
|
|
af5c198def | ||
|
|
c7dd4303da | ||
|
|
be053f7afd | ||
|
|
8832a8dd7b | ||
|
|
abfdaed87a | ||
|
|
c27ca36bf1 | ||
|
|
13eb8f29ca | ||
|
|
643a11a413 | ||
|
|
e5aa18b318 | ||
|
|
f83a0bae4f | ||
|
|
bfbe49cfa9 | ||
|
|
c0f1d039bb | ||
|
|
0fdc08858f | ||
|
|
8c95c89a45 | ||
|
|
f4eb9c2e63 | ||
|
|
d3ee2cfc67 | ||
|
|
5cbb5d6fa0 | ||
|
|
640efeeabe | ||
|
|
b23b725834 | ||
|
|
f6862603dd | ||
|
|
a091961346 | ||
|
|
d289ae1dfc | ||
|
|
08ca088b5d | ||
|
|
a15fed9c16 | ||
|
|
beac08f83f | ||
|
|
f8a210f1d7 | ||
|
|
d5cc7d4af8 | ||
|
|
217fb92a10 | ||
|
|
327052edf4 | ||
|
|
e1f150a5eb | ||
|
|
dd9d1031f0 | ||
|
|
dfbf6f4183 | ||
|
|
e863872fab | ||
|
|
298732599a | ||
|
|
be3fe45d6e | ||
|
|
f759838b85 | ||
|
|
18f05bb815 | ||
|
|
0c803ba1fa | ||
|
|
6db70e070a | ||
|
|
a22040d53c | ||
|
|
c13e3c9f0a | ||
|
|
baa0d82f7c | ||
|
|
93c9b2ab1f | ||
|
|
e6e9780e32 | ||
|
|
a255185980 | ||
|
|
98e0678512 | ||
|
|
9838b40808 | ||
|
|
8d93604641 | ||
|
|
1d60280c72 | ||
|
|
48e89d7f1b | ||
|
|
4e0ccd0f62 | ||
|
|
b4c7d1686d | ||
|
|
0fd1cf72ff | ||
|
|
3caa2d22ba | ||
|
|
1e37b938d9 | ||
|
|
71696fd5c3 | ||
|
|
cc95f009b7 | ||
|
|
ec0138a55d | ||
|
|
61151ca0bf | ||
|
|
f904ab5eaa | ||
|
|
8f14eca95f | ||
|
|
3ae366b5d1 | ||
|
|
1a3ca55caf | ||
|
|
c65d58b100 | ||
|
|
89e2530882 | ||
|
|
593b1c4186 | ||
|
|
f50b737129 | ||
|
|
0527579bbc | ||
|
|
c5c8f6cbbf | ||
|
|
4dee7c425b | ||
|
|
27553f52f7 | ||
|
|
ace932ed4e | ||
|
|
0f0cb00e6d | ||
|
|
db9f349679 | ||
|
|
2307f8f477 | ||
|
|
e5fe71723e | ||
|
|
50018799f2 | ||
|
|
a3b2cb162a | ||
|
|
a2a42c5b12 | ||
|
|
1797fbccf1 | ||
|
|
bb09b431d2 | ||
|
|
5d4f9bd0e4 | ||
|
|
bd0c804a19 | ||
|
|
27af5dde55 | ||
|
|
37dc5450d9 | ||
|
|
de518f79b5 | ||
|
|
0bdc80db32 | ||
|
|
c9e894d3cc |
No files matched your search
@@ -14,20 +14,35 @@
|
|||||||
<property name="messageKey" value="annotation\.same\.line"/>
|
<property name="messageKey" value="annotation\.same\.line"/>
|
||||||
<property name="arguments" value="^(?!(${type_use_annotations}))"/>
|
<property name="arguments" value="^(?!(${type_use_annotations}))"/>
|
||||||
</module>
|
</module>
|
||||||
|
<module name="io.papermc.checkstyle.filters.BetterSuppressionSingleFilter">
|
||||||
|
<!--Allows @deprecated on packages. Not in the javadoc spec (javadoc warns), but it is still rendered in the deprecation block and list-->
|
||||||
|
<property name="checks" value="InappropriateJavadocBlockTagsOnPackage"/>
|
||||||
|
<property name="messageKey" value="javadoc\.inappropriate\.tag"/>
|
||||||
|
<property name="arguments" value="^deprecated$"/>
|
||||||
|
</module>
|
||||||
|
<module name="SuppressWarningsFilter"/>
|
||||||
|
|
||||||
<!--Javadoc Comments-->
|
<!--Javadoc Comments-->
|
||||||
<module name="JavadocPackage"/>
|
<module name="JavadocPackage"/>
|
||||||
<!--Misc-->
|
<!--Misc-->
|
||||||
|
<module name="LineEnding"/>
|
||||||
<module name="NewlineAtEndOfFile"/>
|
<module name="NewlineAtEndOfFile"/>
|
||||||
<!--Whitespace-->
|
<!--Whitespace-->
|
||||||
<module name="FileTabCharacter"/>
|
<module name="FileTabCharacter"/>
|
||||||
|
|
||||||
<module name="TreeWalker">
|
<module name="TreeWalker">
|
||||||
|
<module name="SuppressWarningsHolder"/>
|
||||||
<module name="SuppressionXpathFilter">
|
<module name="SuppressionXpathFilter">
|
||||||
<property name="file" value="${config_loc}/xpath-suppressions.xml"/>
|
<property name="file" value="${config_loc}/xpath-suppressions.xml"/>
|
||||||
<property name="optional" value="false"/>
|
<property name="optional" value="false"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="SuppressionCommentFilter"/>
|
<module name="SuppressionCommentFilter"/>
|
||||||
|
<!--per-check variant: // CHECKSTYLE.OFF: CheckName ... // CHECKSTYLE.ON: CheckName-->
|
||||||
|
<module name="SuppressionCommentFilter">
|
||||||
|
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)"/>
|
||||||
|
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)"/>
|
||||||
|
<property name="checkFormat" value="$1"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
<!--Annotations-->
|
<!--Annotations-->
|
||||||
<module name="AnnotationOnSameLine">
|
<module name="AnnotationOnSameLine">
|
||||||
@@ -36,6 +51,7 @@
|
|||||||
</module>
|
</module>
|
||||||
<module name="AnnotationUseStyle"/>
|
<module name="AnnotationUseStyle"/>
|
||||||
<module name="MissingDeprecated"/>
|
<module name="MissingDeprecated"/>
|
||||||
|
<module name="MissingOverrideOnRecordAccessor"/>
|
||||||
|
|
||||||
<!--Block Checks-->
|
<!--Block Checks-->
|
||||||
<module name="AvoidNestedBlocks"/>
|
<module name="AvoidNestedBlocks"/>
|
||||||
@@ -53,12 +69,17 @@
|
|||||||
<!--Coding-->
|
<!--Coding-->
|
||||||
<module name="AvoidDoubleBraceInitialization"/>
|
<module name="AvoidDoubleBraceInitialization"/>
|
||||||
<module name="AvoidNoArgumentSuperConstructorCall"/>
|
<module name="AvoidNoArgumentSuperConstructorCall"/>
|
||||||
<module name="ConstructorsDeclarationGrouping"/>
|
<module name="ConstructorsDeclarationGrouping">
|
||||||
|
<property name="orderByIncreasingParameterCount" value="true"/>
|
||||||
|
</module>
|
||||||
<module name="CovariantEquals"/>
|
<module name="CovariantEquals"/>
|
||||||
<module name="DeclarationOrder"/>
|
<module name="DeclarationOrder">
|
||||||
|
<property name="ignoreConstructors" value="true"/>
|
||||||
|
</module>
|
||||||
<module name="DefaultComesLast"/>
|
<module name="DefaultComesLast"/>
|
||||||
<module name="EmptyStatement"/>
|
<module name="EmptyStatement"/>
|
||||||
<module name="EqualsHashCode"/>
|
<module name="EqualsHashCode"/>
|
||||||
|
<module name="ExpressionOverBlockLambda"/>
|
||||||
<module name="FallThrough"/>
|
<module name="FallThrough"/>
|
||||||
<!-- Use non-final variables as an identifier of old code for now -->
|
<!-- Use non-final variables as an identifier of old code for now -->
|
||||||
<!--<module name="FinalLocalVariable">
|
<!--<module name="FinalLocalVariable">
|
||||||
@@ -78,10 +99,12 @@
|
|||||||
<module name="UnnecessaryNullCheckWithInstanceOf"/>
|
<module name="UnnecessaryNullCheckWithInstanceOf"/>
|
||||||
<module name="UnnecessarySemicolonAfterOuterTypeDeclaration"/>
|
<module name="UnnecessarySemicolonAfterOuterTypeDeclaration"/>
|
||||||
<module name="UnnecessarySemicolonAfterTypeMemberDeclaration"/>
|
<module name="UnnecessarySemicolonAfterTypeMemberDeclaration"/>
|
||||||
<module name="UnnecessarySemicolonInEnumeration"/>
|
|
||||||
<module name="UnnecessarySemicolonInTryWithResources"/>
|
<module name="UnnecessarySemicolonInTryWithResources"/>
|
||||||
<module name="UnusedCatchParameterShouldBeUnnamed"/>
|
<module name="UnusedCatchParameterShouldBeUnnamed"/>
|
||||||
<module name="UnusedLocalVariable"/>
|
<module name="UnusedLocalVariable"/>
|
||||||
|
<module name="UnusedPrivateField"/>
|
||||||
|
<module name="UnusedTryResourceShouldBeUnnamed"/>
|
||||||
|
<module name="UseEnhancedSwitch"/>
|
||||||
<module name="WhenShouldBeUsed"/>
|
<module name="WhenShouldBeUsed"/>
|
||||||
|
|
||||||
<!--Headers--> <!--N/A-->
|
<!--Headers--> <!--N/A-->
|
||||||
@@ -110,9 +133,13 @@
|
|||||||
<module name="AtclauseOrder">
|
<module name="AtclauseOrder">
|
||||||
<property name="tagOrder" value="@param, @return, @throws, @see, @deprecated, @hidden"/>
|
<property name="tagOrder" value="@param, @return, @throws, @see, @deprecated, @hidden"/>
|
||||||
</module>
|
</module>
|
||||||
|
<module name="InappropriateJavadocBlockTagsOnField"/>
|
||||||
|
<module name="InappropriateJavadocBlockTagsOnPackage"/>
|
||||||
|
<module name="InappropriateJavadocBlockTagsOnType"/>
|
||||||
<module name="InvalidJavadocPosition"/>
|
<module name="InvalidJavadocPosition"/>
|
||||||
<module name="JavadocBlockTagLocation"/>
|
<module name="JavadocBlockTagLocation"/>
|
||||||
<module name="JavadocContentLocation"/>
|
<module name="JavadocContentLocation"/>
|
||||||
|
<module name="JavadocEndCommentDelimiter"/>
|
||||||
<module name="JavadocLeadingAsteriskAlign"/>
|
<module name="JavadocLeadingAsteriskAlign"/>
|
||||||
<module name="JavadocMethod">
|
<module name="JavadocMethod">
|
||||||
<!--checks all, but doesn't require. If we have a doc, it should be valid-->
|
<!--checks all, but doesn't require. If we have a doc, it should be valid-->
|
||||||
@@ -120,11 +147,11 @@
|
|||||||
</module>
|
</module>
|
||||||
<module name="JavadocMissingLeadingAsterisk"/>
|
<module name="JavadocMissingLeadingAsterisk"/>
|
||||||
<module name="JavadocMissingWhitespaceAfterAsterisk"/>
|
<module name="JavadocMissingWhitespaceAfterAsterisk"/>
|
||||||
<module name="JavadocStyle"/> <!--checks all, but doesn't require. If we have a doc, it should be valid-->
|
|
||||||
<module name="JavadocTagContinuationIndentation"/>
|
<module name="JavadocTagContinuationIndentation"/>
|
||||||
<module name="JavadocType"/> <!--checks all, but doesn't require. If we have a doc, it should be valid-->
|
<module name="JavadocType"/> <!--checks all, but doesn't require. If we have a doc, it should be valid-->
|
||||||
<module name="NonEmptyAtclauseDescription"/>
|
<module name="NonEmptyAtclauseDescription"/>
|
||||||
<module name="RequireEmptyLineBeforeBlockTagGroup"/>
|
<module name="RequireEmptyLineBeforeBlockTagGroup"/>
|
||||||
|
<module name="SummaryJavadoc"/> <!--checks all, but doesn't require. If we have a doc, it should be valid-->
|
||||||
|
|
||||||
<!--Metrics--> <!--N/A-->
|
<!--Metrics--> <!--N/A-->
|
||||||
|
|
||||||
@@ -132,13 +159,21 @@
|
|||||||
<module name="ArrayTypeStyle"/>
|
<module name="ArrayTypeStyle"/>
|
||||||
<module name="AvoidEscapedUnicodeCharacters"/>
|
<module name="AvoidEscapedUnicodeCharacters"/>
|
||||||
<module name="CommentsIndentation"/>
|
<module name="CommentsIndentation"/>
|
||||||
|
<module name="HexLiteralCase"/>
|
||||||
<!-- Overlaps with the configured FinalLocalVariable, but is more strict -->
|
<!-- Overlaps with the configured FinalLocalVariable, but is more strict -->
|
||||||
<!--<module name="FinalParameters">
|
<!--<module name="FinalParameters">
|
||||||
<property name="tokens" value="METHOD_DEF,CTOR_DEF,LITERAL_CATCH,FOR_EACH_CLAUSE,PATTERN_VARIABLE_DEF"/>
|
<property name="tokens" value="METHOD_DEF,CTOR_DEF,LITERAL_CATCH,FOR_EACH_CLAUSE,PATTERN_VARIABLE_DEF"/>
|
||||||
</module>-->
|
</module>-->
|
||||||
|
|
||||||
<module name="NoCodeInFile"/>
|
<module name="NoCodeInFile"/>
|
||||||
|
<module name="NumericalPrefixesInfixesSuffixesCharacterCase"/>
|
||||||
<module name="OuterTypeFilename"/>
|
<module name="OuterTypeFilename"/>
|
||||||
|
<!--Leftover Paper/Spigot markers from when these sources were patches on top of upstream (suppressed for the patched paper-server/src/minecraft sources)-->
|
||||||
|
<module name="TodoComment">
|
||||||
|
<property name="id" value="PatchMarkerComment"/>
|
||||||
|
<property name="format" value="(^|//)\s*(Paper|Spigot)\b"/>
|
||||||
|
<message key="todo.match" value="Remove the leftover ''// Paper'' or ''// Spigot'' patch marker comment."/>
|
||||||
|
</module>
|
||||||
<module name="UpperEll"/>
|
<module name="UpperEll"/>
|
||||||
|
|
||||||
<!--Modifiers-->
|
<!--Modifiers-->
|
||||||
@@ -176,6 +211,7 @@
|
|||||||
<!--Size Violations--> <!--N/A-->
|
<!--Size Violations--> <!--N/A-->
|
||||||
|
|
||||||
<!--Whitespace-->
|
<!--Whitespace-->
|
||||||
|
<module name="ArrayBracketNoWhitespace"/>
|
||||||
<module name="EmptyForInitializerPad"/>
|
<module name="EmptyForInitializerPad"/>
|
||||||
<module name="EmptyForIteratorPad"/>
|
<module name="EmptyForIteratorPad"/>
|
||||||
<module name="EmptyLineSeparator">
|
<module name="EmptyLineSeparator">
|
||||||
@@ -193,9 +229,11 @@
|
|||||||
<module name="TypecastParenPad"/>
|
<module name="TypecastParenPad"/>
|
||||||
<module name="WhitespaceAfter"/>
|
<module name="WhitespaceAfter"/>
|
||||||
<module name="WhitespaceAround"/>
|
<module name="WhitespaceAround"/>
|
||||||
|
<module name="WhitespaceBeforeEmptyBody"/>
|
||||||
|
|
||||||
<!--Custom-->
|
<!--Custom-->
|
||||||
<module name="JavadocAlignParameterDescription"/>
|
<module name="JavadocAlignParameterDescription"/>
|
||||||
|
<module name="JavadocParamTagOrder"/>
|
||||||
<module name="NullabilityAnnotations"/>
|
<module name="NullabilityAnnotations"/>
|
||||||
<module name="RedundantNullability"/>
|
<module name="RedundantNullability"/>
|
||||||
<module name="UnnecessaryFullyQualifiedImport"/>
|
<module name="UnnecessaryFullyQualifiedImport"/>
|
||||||
|
|||||||
@@ -3,5 +3,4 @@
|
|||||||
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
|
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
|
||||||
<suppressions>
|
<suppressions>
|
||||||
<suppress checks="MissingJavadoc.*" files="src[\\/]test[\\/]java[^\\/]*[\\/].*"/>
|
<suppress checks="MissingJavadoc.*" files="src[\\/]test[\\/]java[^\\/]*[\\/].*"/>
|
||||||
<suppress checks="JavadocPackage" files="src[\\/]test[\\/]java[^\\/]*[\\/].*"/>
|
|
||||||
</suppressions>
|
</suppressions>
|
||||||
+1
-1
@@ -18,7 +18,7 @@ indent_style = tab
|
|||||||
[*.bat]
|
[*.bat]
|
||||||
end_of_line = crlf
|
end_of_line = crlf
|
||||||
|
|
||||||
[*.yml]
|
[{*.yaml,*.yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[{*.patch,*.md}]
|
[{*.patch,*.md}]
|
||||||
|
|||||||
+13
-2
@@ -1,2 +1,13 @@
|
|||||||
* @PaperMC/paper-maintainers
|
# default ownership
|
||||||
/.github/CODEOWNERS @PaperMC/core-team
|
* @papermc/paper-maintainers
|
||||||
|
|
||||||
|
# tooling
|
||||||
|
/.github/workflows/ @papermc/tooling
|
||||||
|
/gradle/ @papermc/tooling
|
||||||
|
/paper-api/build.gradle.kts @papermc/tooling
|
||||||
|
/paper-server/build.gradle.kts @papermc/tooling
|
||||||
|
/build.gradle.kts @papermc/tooling
|
||||||
|
/gradle.properties @papermc/tooling
|
||||||
|
/settings.gradle.kts @papermc/tooling
|
||||||
|
|
||||||
|
/.github/CODEOWNERS @papermc/leadership-team
|
||||||
@@ -5,14 +5,17 @@
|
|||||||
# of the PR relating to this action.
|
# of the PR relating to this action.
|
||||||
|
|
||||||
name: Build Paper
|
name: Build Paper
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- reopened
|
- reopened
|
||||||
- synchronize
|
- synchronize
|
||||||
- labeled
|
- labeled
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -107,7 +110,7 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: Test Results
|
name: test-results
|
||||||
path: |
|
path: |
|
||||||
**/build/test-results/test/TEST-*.xml
|
**/build/test-results/test/TEST-*.xml
|
||||||
|
|
||||||
@@ -137,12 +140,12 @@ jobs:
|
|||||||
publishing-task: ":paper-api:publishAllPublicationsTo_githubPackages_PRsRepository publishDevBundlePublicationTo_githubPackages_PRsRepository -PpublishDevBundle"
|
publishing-task: ":paper-api:publishAllPublicationsTo_githubPackages_PRsRepository publishDevBundlePublicationTo_githubPackages_PRsRepository -PpublishDevBundle"
|
||||||
event_file:
|
event_file:
|
||||||
name: "Event File"
|
name: "Event File"
|
||||||
# Only run on PRs if the source branch is on someone else's repo
|
needs: build
|
||||||
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
|
if: ${{ !cancelled() && needs.build.result != 'skipped' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: Event File
|
name: event-data
|
||||||
path: ${{ github.event_path }}
|
path: ${{ github.event_path }}
|
||||||
@@ -2,7 +2,11 @@ name: Close invalid PRs
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [ opened ]
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
@@ -12,7 +16,7 @@ jobs:
|
|||||||
github.head_ref == 'main' ||
|
github.head_ref == 'main' ||
|
||||||
github.event.pull_request.head.repo.owner.type != 'User'
|
github.event.pull_request.head.repo.owner.type != 'User'
|
||||||
)
|
)
|
||||||
runs-on: ubuntu-latest
|
runs-on: namespace-profile-linux-small
|
||||||
steps:
|
steps:
|
||||||
- uses: superbrothers/close-pull-request@v3
|
- uses: superbrothers/close-pull-request@v3
|
||||||
id: "main_branch"
|
id: "main_branch"
|
||||||
|
|||||||
@@ -0,0 +1,185 @@
|
|||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
detect-version:
|
||||||
|
runs-on: namespace-profile-linux-small
|
||||||
|
timeout-minutes: 5
|
||||||
|
permissions:
|
||||||
|
issues: read
|
||||||
|
outputs:
|
||||||
|
version: ${{ steps.detect.outputs.version }}
|
||||||
|
steps:
|
||||||
|
- id: detect
|
||||||
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
// Capturing Groups:
|
||||||
|
// 1 = Brand
|
||||||
|
// 2 = Minecraft Version
|
||||||
|
// 3 = Build Number
|
||||||
|
// 4 = Git Branch/Commit
|
||||||
|
// 5 = Build Time
|
||||||
|
const NEW_PATTERN = /This server is running ([A-Za-z0-9]+) version ([\d\.]+)-(DEV|\d+)-(.*) \((.*)\) \(Implementing API version .*\)(?: \(Git: .*\))?/;
|
||||||
|
|
||||||
|
// Capturing Groups:
|
||||||
|
// 1 = Brand
|
||||||
|
// 2 = Minecraft Version
|
||||||
|
const OLD_PATTERN = /This server is running ([A-Za-z0-9]+) version .* \(MC: ([^\)]+)\) \(Implementing API version .*\)(?: \(Git: .*\))?/;
|
||||||
|
|
||||||
|
if (!context.payload.issue.body) {
|
||||||
|
core.info("Issue body is empty; unable to detect version.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let version;
|
||||||
|
|
||||||
|
const match = context.payload.issue.body.match(NEW_PATTERN);
|
||||||
|
if (match && match.length === 6) {
|
||||||
|
version = match[2];
|
||||||
|
} else {
|
||||||
|
const oldMatch = context.payload.issue.body.match(OLD_PATTERN);
|
||||||
|
if (oldMatch) {
|
||||||
|
version = oldMatch[2];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!version) {
|
||||||
|
core.info("Unable to determine the Minecraft version from the issue body.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
core.info(`Detected Minecraft version: ${version}`);
|
||||||
|
core.setOutput('version', version);
|
||||||
|
|
||||||
|
label-version:
|
||||||
|
needs: detect-version
|
||||||
|
if: needs.detect-version.outputs.version != ''
|
||||||
|
runs-on: namespace-profile-linux-small
|
||||||
|
timeout-minutes: 5
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const version = '${{ needs.detect-version.outputs.version }}';
|
||||||
|
|
||||||
|
await github.rest.issues.addLabels({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.payload.issue.number,
|
||||||
|
labels: [`version: ${version}`],
|
||||||
|
});
|
||||||
|
|
||||||
|
core.info(`Added version label for ${version}.`);
|
||||||
|
|
||||||
|
check-support:
|
||||||
|
needs:
|
||||||
|
- detect-version
|
||||||
|
- label-version
|
||||||
|
if: needs.detect-version.outputs.version != ''
|
||||||
|
runs-on: namespace-profile-linux-small
|
||||||
|
timeout-minutes: 5
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const version = '${{ needs.detect-version.outputs.version }}';
|
||||||
|
|
||||||
|
const apiUrl = `https://fill.papermc.io/v3/projects/paper/versions/${encodeURIComponent(version)}`;
|
||||||
|
core.info(`Fetching version information from ${apiUrl}`);
|
||||||
|
|
||||||
|
let supportStatus;
|
||||||
|
let supportEnd;
|
||||||
|
|
||||||
|
try {
|
||||||
|
const response = await fetch(apiUrl, {
|
||||||
|
headers: {
|
||||||
|
'Accept': 'application/json',
|
||||||
|
'User-Agent': `GitHub Actions (${context.repo.owner}/${context.repo.repo})`,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
if (response.status === 404) {
|
||||||
|
core.info(`Fill has no information for version ${version}.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
core.error(`Fill returned HTTP ${response.status}: ${response.statusText}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = await response.json();
|
||||||
|
supportStatus = data?.version?.support?.status;
|
||||||
|
supportEnd = data?.version?.support?.end;
|
||||||
|
} catch (error) {
|
||||||
|
core.warning(`Failed to fetch support information: ${error}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
core.info(`Fill support status for ${version}: ${supportStatus}`);
|
||||||
|
|
||||||
|
// Only comment for deprecated or unsupported versions.
|
||||||
|
let comment;
|
||||||
|
|
||||||
|
if (supportStatus === 'UNSUPPORTED') {
|
||||||
|
comment =
|
||||||
|
`⚠️ **Minecraft ${version} is unsupported.**\n\n` +
|
||||||
|
`This version is no longer supported by PaperMC. ` +
|
||||||
|
(supportEnd
|
||||||
|
? `Support _ended_ on ${supportEnd}. `
|
||||||
|
: '') +
|
||||||
|
`Please consider upgrading to a supported Minecraft version.`;
|
||||||
|
} else if (supportStatus === 'DEPRECATED') {
|
||||||
|
comment =
|
||||||
|
`⚠️ **Minecraft ${version} is deprecated.**\n\n` +
|
||||||
|
`This version is deprecated by PaperMC. ` +
|
||||||
|
(supportEnd
|
||||||
|
? `Support will end on ${supportEnd}. `
|
||||||
|
: '') +
|
||||||
|
`Please consider upgrading to a supported Minecraft version.`;
|
||||||
|
} else {
|
||||||
|
core.info(`${version} is supported or has an unknown status.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
await github.rest.issues.createComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.payload.issue.number,
|
||||||
|
body: comment,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (supportStatus === 'UNSUPPORTED') {
|
||||||
|
try {
|
||||||
|
await github.rest.issues.removeLabel({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.payload.issue.number,
|
||||||
|
name: 'status: needs triage',
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
// ignore - missing label is not an error
|
||||||
|
}
|
||||||
|
|
||||||
|
await github.rest.issues.addLabels({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.payload.issue.number,
|
||||||
|
labels: ['resolution: unsupported'],
|
||||||
|
});
|
||||||
|
|
||||||
|
await github.rest.issues.update({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.payload.issue.number,
|
||||||
|
state: 'closed',
|
||||||
|
state_reason: 'not_planned',
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -9,6 +9,6 @@ permissions: {}
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
signal:
|
signal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: namespace-profile-linux-small
|
||||||
steps:
|
steps:
|
||||||
- run: echo "A PR review was submitted"
|
- run: echo "A PR review was submitted"
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
concurrency:
|
concurrency:
|
||||||
group: pr-review-status-${{ github.event.workflow_run.head_sha }}
|
group: pr-review-status-${{ github.event.workflow_run.head_sha }}
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: namespace-profile-linux-small
|
||||||
steps:
|
steps:
|
||||||
- name: "authenticate"
|
- name: "authenticate"
|
||||||
id: "authenticate"
|
id: "authenticate"
|
||||||
@@ -48,7 +48,7 @@ jobs:
|
|||||||
concurrency:
|
concurrency:
|
||||||
group: pr-review-status-promote
|
group: pr-review-status-promote
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: namespace-profile-linux-small
|
||||||
steps:
|
steps:
|
||||||
- name: "authenticate"
|
- name: "authenticate"
|
||||||
id: "authenticate"
|
id: "authenticate"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
concurrency:
|
concurrency:
|
||||||
group: update-bugs-project-${{ github.event.issue.number }}
|
group: update-bugs-project-${{ github.event.issue.number }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
runs-on: ubuntu-latest
|
runs-on: namespace-profile-linux-small
|
||||||
steps:
|
steps:
|
||||||
- name: "authenticate"
|
- name: "authenticate"
|
||||||
id: "authenticate"
|
id: "authenticate"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: namespace-profile-linux-small
|
||||||
steps:
|
steps:
|
||||||
- name: Generate an Application repository access token
|
- name: Generate an Application repository access token
|
||||||
id: gen_repo_token
|
id: gen_repo_token
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
name: Release 26.3
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: false
|
||||||
|
group: release-26.3
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
# guard for manual dispatch
|
||||||
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
runs-on: namespace-profile-linux-default
|
||||||
|
timeout-minutes: 30
|
||||||
|
#env:
|
||||||
|
# BUILD_NUMBER: ${{ github.run_number }}
|
||||||
|
steps:
|
||||||
|
- name: "environment"
|
||||||
|
run: |
|
||||||
|
echo "BUILD_NUMBER=$((129 + GITHUB_RUN_NUMBER))" >> "$GITHUB_ENV"
|
||||||
|
echo "BUILD_STARTED_AT=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: "git / checkout"
|
||||||
|
uses: namespacelabs/nscloud-checkout-action@66f2dc6f6c42a8ac6c4e53473c4840006822831e # v9.0.1
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- uses: papermc/ci/setup-gradle@main
|
||||||
|
|
||||||
|
- uses: papermc/ci/build-paper@main
|
||||||
|
|
||||||
|
- if: ${{ !cancelled() }}
|
||||||
|
uses: papermc/ci/upload-event-data@main
|
||||||
|
with:
|
||||||
|
path: ${{ github.event_path }}
|
||||||
|
|
||||||
|
- if: ${{ !cancelled() }}
|
||||||
|
uses: papermc/ci/upload-test-results@main
|
||||||
|
|
||||||
|
- uses: papermc/ci/publish-fill@main
|
||||||
|
with:
|
||||||
|
fill_api_url: ${{ secrets.FILL_API_URL }}
|
||||||
|
fill_api_key: ${{ secrets.FILL_API_KEY }}
|
||||||
|
|
||||||
|
- uses: papermc/ci/publish-maven@main
|
||||||
|
with:
|
||||||
|
maven_username: ${{ secrets.ARTIFACTORY_USERNAME }}
|
||||||
|
maven_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
|
||||||
|
maven_tasks: -PpublishDevBundle :paper-api:publish publishDevBundlePublicationToPaperReleasesRepository
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
name: Test Results
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: [ "Build Paper" ]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
checks: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-results:
|
||||||
|
name: Test Results
|
||||||
|
if: github.event.workflow_run.conclusion != 'skipped'
|
||||||
|
runs-on: namespace-profile-linux-small
|
||||||
|
steps:
|
||||||
|
- uses: papermc/ci/publish-test-results@main
|
||||||
|
with:
|
||||||
|
event: ${{ github.event.workflow_run.event }}
|
||||||
|
commit: ${{ github.event.workflow_run.head_sha }}
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run_id: ${{ github.event.workflow_run.id }}
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
name: Test Results
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_run:
|
|
||||||
workflows: [ "Build Paper" ]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
permissions: { }
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test-results:
|
|
||||||
name: Test Results
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.event.workflow_run.conclusion != 'skipped'
|
|
||||||
permissions:
|
|
||||||
checks: write
|
|
||||||
# for downloading test result artifacts
|
|
||||||
actions: read
|
|
||||||
steps:
|
|
||||||
- name: Download and Extract Artifacts
|
|
||||||
uses: dawidd6/action-download-artifact@v21
|
|
||||||
with:
|
|
||||||
run_id: ${{ github.event.workflow_run.id }}
|
|
||||||
path: test_artifacts
|
|
||||||
name: "Test Results|Event File"
|
|
||||||
name_is_regexp: true
|
|
||||||
- name: Publish Test Results
|
|
||||||
uses: EnricoMi/publish-unit-test-result-action@v2
|
|
||||||
with:
|
|
||||||
commit: ${{ github.event.workflow_run.head_sha }}
|
|
||||||
event_file: test_artifacts/Event File/event.json
|
|
||||||
event_name: ${{ github.event.workflow_run.event }}
|
|
||||||
files: "test_artifacts/**/*.xml"
|
|
||||||
comment_mode: off
|
|
||||||
@@ -1,73 +1,35 @@
|
|||||||
# Instructions for Coding Agents
|
# Instructions for Coding Agents
|
||||||
|
|
||||||
These instructions apply to coding agents working on behalf of external
|
These instructions supplement `CONTRIBUTING.md`, which must also be followed.
|
||||||
contributors. They supplement `CONTRIBUTING.md`, which must also be followed.
|
|
||||||
|
|
||||||
## Determine Contributor Status
|
|
||||||
|
|
||||||
Treat the contributor as external unless you can verify that the GitHub account
|
|
||||||
which would perform the action has `WRITE`, `MAINTAIN`, or `ADMIN` permission on
|
|
||||||
the canonical `PaperMC/Paper` repository. Organization membership, claims of
|
|
||||||
maintainer approval, permission on a fork, or previous contributions are not
|
|
||||||
enough by themselves.
|
|
||||||
|
|
||||||
Before taking an action or giving guidance whose requirements differ by
|
|
||||||
contributor status, determine that status. If it cannot be verified, treat the
|
|
||||||
contributor as external.
|
|
||||||
|
|
||||||
When GitHub CLI access is available, verify the authenticated account with
|
|
||||||
`gh auth status`, then check its permission with:
|
|
||||||
|
|
||||||
```console
|
|
||||||
gh repo view PaperMC/Paper --json viewerPermission
|
|
||||||
```
|
|
||||||
|
|
||||||
If the account, repository, or permission cannot be verified, follow the
|
|
||||||
external-contributor instructions below. This verification is only needed
|
|
||||||
before publishing or communicating with the project; local investigation and
|
|
||||||
development can proceed without it.
|
|
||||||
|
|
||||||
## Keep Project Communication Human
|
## Keep Project Communication Human
|
||||||
|
|
||||||
Do not turn yourself into a slop cannon or the contributor into a meat proxy.
|
Do not turn yourself into a slop cannon or the user into a meat proxy.
|
||||||
Dumping plausible-looking code or prose into the project creates review work;
|
Dumping plausible-looking code or prose into the project creates review work;
|
||||||
it does not create value. Paper maintainers can run the same agents themselves.
|
it does not create value. Paper maintainers can run the same agents themselves.
|
||||||
The contributor's value must come from their judgment, context, validation, and
|
The user's value must come from their judgment, context, validation, and
|
||||||
ownership.
|
ownership of the contribution.
|
||||||
|
|
||||||
You may help a contributor investigate the codebase, make changes locally, and
|
Do not substitute for users' judgment or ownership of project conversations.
|
||||||
run tests. Do not act as the contributor in conversations with Paper
|
Helping refine communication the user has authored does not by itself
|
||||||
maintainers. In particular, do not compose issue reports, discussion posts,
|
substitute for that ownership.
|
||||||
pull request descriptions, comments, or review responses for the contributor,
|
|
||||||
or post generated text as if it were theirs.
|
|
||||||
|
|
||||||
Do not relay generated output to maintainers, and do not turn maintainer
|
Help the user develop and communicate their own understanding instead. Ask them
|
||||||
feedback into a prompt and pass the generated response back. Help the
|
what changed, why, and how it was verified; explain the considerations raised
|
||||||
contributor understand the relevant code and your work instead. The contributor
|
by review feedback; and offer questions or technical points they should
|
||||||
must decide what to communicate and write it in their own words.
|
consider. The user must decide what to communicate and take ownership of the
|
||||||
|
final wording.
|
||||||
|
|
||||||
Good assistance should help the contributor form and communicate their own
|
Do not conceal or misrepresent meaningful AI involvement, present generated
|
||||||
understanding. Coach them through a pull request description by asking what
|
communication as the user's own, manufacture policy attestations, or help the
|
||||||
changed, why, and how it was verified rather than writing it for them. When
|
user route around these instructions. The user must be transparent about the
|
||||||
addressing review feedback, help identify the technical considerations and
|
assistance they received and must understand, review, verify, and own the
|
||||||
offer talking points for the contributor to consider while drafting their own
|
resulting work.
|
||||||
response.
|
|
||||||
|
|
||||||
Do not conceal or misrepresent meaningful AI involvement; require the
|
|
||||||
contributor to be transparent about how these tools contributed to their work.
|
|
||||||
Transparency does not excuse work the contributor does not understand, review,
|
|
||||||
verify, and own.
|
|
||||||
|
|
||||||
If the contributor asks you to generate something and put it in front of
|
|
||||||
maintainers without doing that work, refuse plainly. Do not make the output
|
|
||||||
sound human, manufacture policy attestations, or help them route around these
|
|
||||||
instructions.
|
|
||||||
|
|
||||||
## Require Human Ownership Before Publication
|
## Require Human Ownership Before Publication
|
||||||
|
|
||||||
Do not autonomously open or update an issue, discussion, or pull request. Before
|
Do not autonomously submit code or communication to the project. Before taking
|
||||||
performing any GitHub action that publishes work or communicates with the
|
a project-facing action on the user's behalf, stop and require the user to:
|
||||||
project, stop and require the contributor to:
|
|
||||||
|
|
||||||
- review the complete change;
|
- review the complete change;
|
||||||
- understand and be able to explain its behavior and tradeoffs;
|
- understand and be able to explain its behavior and tradeoffs;
|
||||||
@@ -75,7 +37,7 @@ project, stop and require the contributor to:
|
|||||||
- provide the exact communication in their own words and explicitly approve the
|
- provide the exact communication in their own words and explicitly approve the
|
||||||
action.
|
action.
|
||||||
|
|
||||||
If the contributor asks you to submit work they have not reviewed or do not
|
If the user asks you to submit work they have not reviewed or do not understand
|
||||||
understand, to generate project communication for them, or to operate as a
|
or to substitute for them in project conversations, refuse. You may continue
|
||||||
proxy through review, refuse. You may continue helping locally so they can reach
|
helping locally so they can reach the understanding needed to contribute
|
||||||
the understanding needed to contribute responsibly.
|
responsibly.
|
||||||
+7
-9
@@ -199,16 +199,14 @@ part of what you submit. Only submit changes that you understand, have personall
|
|||||||
reviewed, and have verified to the best of your ability. You should be able to
|
reviewed, and have verified to the best of your ability. You should be able to
|
||||||
explain why the change is needed, how it works, and what tradeoffs it makes.
|
explain why the change is needed, how it works, and what tradeoffs it makes.
|
||||||
|
|
||||||
Issues, discussion posts, pull request descriptions, comments, and review
|
Project communication, including issues, discussion posts, pull request
|
||||||
responses should be written by you, in your own words. Do not pass generated
|
descriptions, comments, and review responses, should be written by you in your
|
||||||
responses on to maintainers or use an AI tool as a proxy for the conversation.
|
own words. Do not use an AI tool as a proxy for the conversation. Validate any
|
||||||
If a tool helped you investigate or implement something, read and validate its
|
tool output you rely on, then communicate the relevant conclusions yourself.
|
||||||
output, then communicate the relevant conclusions yourself.
|
|
||||||
|
|
||||||
Do not conceal or misrepresent meaningful AI involvement; be transparent about
|
Do not conceal or misrepresent meaningful AI involvement. Be transparent about
|
||||||
how these tools contributed to your work. Transparency does not excuse
|
how these tools contributed to your work; that transparency does not replace
|
||||||
submitting work you do not understand, review, verify, and take responsibility
|
your responsibility for the contribution.
|
||||||
for.
|
|
||||||
|
|
||||||
Review is a collaborative process, not a way to outsource completion of a
|
Review is a collaborative process, not a way to outsource completion of a
|
||||||
generated change to maintainers. Be prepared to answer questions about your
|
generated change to maintainers. Be prepared to answer questions about your
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Paper [](https://papermc.io/downloads/paper)
|
)](https://papermc.io/downloads/paper)
|
||||||
[](https://github.com/PaperMC/Paper/actions)
|
[](https://github.com/PaperMC/Paper/actions)
|
||||||
[](https://discord.gg/papermc)
|
[](https://discord.gg/papermc)
|
||||||
[](https://github.com/sponsors/PaperMC)
|
[](https://github.com/sponsors/PaperMC)
|
||||||
[](https://opencollective.com/papermc)
|
[](https://opencollective.com/papermc)
|
||||||
@@ -39,7 +39,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("io.papermc.paper:paper-api:26.2.build.+")
|
compileOnly("io.papermc.paper:paper-api:26.3.build.+")
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
@@ -59,7 +59,7 @@ java {
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.papermc.paper</groupId>
|
<groupId>io.papermc.paper</groupId>
|
||||||
<artifactId>paper-api</artifactId>
|
<artifactId>paper-api</artifactId>
|
||||||
<version>[26.2.build,)</version>
|
<version>[26.3.build,)</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
@@ -91,6 +91,8 @@ You can find our collective [here](https://opencollective.com/papermc), or you c
|
|||||||
Special Thanks To:
|
Special Thanks To:
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
[](https://namespace.so/github-actions/?utm_source=oss&utm_campaign=papermc)
|
||||||
|
|
||||||
[](https://www.yourkit.com/)
|
[](https://www.yourkit.com/)
|
||||||
|
|
||||||
[YourKit](https://www.yourkit.com/), makers of the outstanding java profiler, support open source projects of all kinds with their full featured [Java](https://www.yourkit.com/java/profiler) and [.NET](https://www.yourkit.com/.net/profiler) application profilers. We thank them for granting Paper an OSS license so that we can make our software the best it can be.
|
[YourKit](https://www.yourkit.com/), makers of the outstanding java profiler, support open source projects of all kinds with their full featured [Java](https://www.yourkit.com/java/profiler) and [.NET](https://www.yourkit.com/.net/profiler) application profilers. We thank them for granting Paper an OSS license so that we can make our software the best it can be.
|
||||||
|
|||||||
+32
-25
@@ -5,6 +5,7 @@ private-f net.minecraft.server.MinecraftServer connection
|
|||||||
private-f net.minecraft.server.MinecraftServer levels
|
private-f net.minecraft.server.MinecraftServer levels
|
||||||
private-f net.minecraft.world.item.ItemStack components
|
private-f net.minecraft.world.item.ItemStack components
|
||||||
private-f net.minecraft.world.item.ItemStack item
|
private-f net.minecraft.world.item.ItemStack item
|
||||||
|
private-f net.minecraft.world.item.crafting.RecipeManager learnableRecipes
|
||||||
private-f net.minecraft.world.level.block.entity.BeehiveBlockEntity stored
|
private-f net.minecraft.world.level.block.entity.BeehiveBlockEntity stored
|
||||||
protected net.minecraft.world.entity.LivingEntity skipDropExperience
|
protected net.minecraft.world.entity.LivingEntity skipDropExperience
|
||||||
protected net.minecraft.world.level.Level thread
|
protected net.minecraft.world.level.Level thread
|
||||||
@@ -15,6 +16,8 @@ public net.minecraft.commands.CommandSourceStack source
|
|||||||
public net.minecraft.commands.arguments.DimensionArgument ERROR_INVALID_VALUE
|
public net.minecraft.commands.arguments.DimensionArgument ERROR_INVALID_VALUE
|
||||||
public net.minecraft.commands.arguments.blocks.BlockInput tag
|
public net.minecraft.commands.arguments.blocks.BlockInput tag
|
||||||
public net.minecraft.core.MappedRegistry validateWrite(Lnet/minecraft/resources/ResourceKey;)V
|
public net.minecraft.core.MappedRegistry validateWrite(Lnet/minecraft/resources/ResourceKey;)V
|
||||||
|
public net.minecraft.core.component.DataComponentPatch map
|
||||||
|
public net.minecraft.core.component.Removed
|
||||||
public net.minecraft.nbt.ListTag <init>(Ljava/util/List;)V
|
public net.minecraft.nbt.ListTag <init>(Ljava/util/List;)V
|
||||||
public net.minecraft.nbt.ListTag identifyRawElementType()B
|
public net.minecraft.nbt.ListTag identifyRawElementType()B
|
||||||
public net.minecraft.network.Connection address
|
public net.minecraft.network.Connection address
|
||||||
@@ -22,12 +25,12 @@ public net.minecraft.network.Connection channel
|
|||||||
public net.minecraft.network.chat.contents.TranslatableContents PRIMITIVE_ARG_CODEC
|
public net.minecraft.network.chat.contents.TranslatableContents PRIMITIVE_ARG_CODEC
|
||||||
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket <init>(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/entity/BlockEntityType;Lnet/minecraft/nbt/CompoundTag;)V
|
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket <init>(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/entity/BlockEntityType;Lnet/minecraft/nbt/CompoundTag;)V
|
||||||
public net.minecraft.network.syncher.SynchedEntityData getItem(Lnet/minecraft/network/syncher/EntityDataAccessor;)Lnet/minecraft/network/syncher/SynchedEntityData$DataItem;
|
public net.minecraft.network.syncher.SynchedEntityData getItem(Lnet/minecraft/network/syncher/EntityDataAccessor;)Lnet/minecraft/network/syncher/SynchedEntityData$DataItem;
|
||||||
|
public net.minecraft.resources.RegistryOps <init>(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/resources/RegistryOps$RegistryInfoLookup;)V
|
||||||
public net.minecraft.resources.RegistryOps lookupProvider
|
public net.minecraft.resources.RegistryOps lookupProvider
|
||||||
public net.minecraft.resources.RegistryOps$HolderLookupAdapter
|
public net.minecraft.resources.RegistryOps$HolderLookupAdapter
|
||||||
public net.minecraft.server.Main forceUpgrade(Lnet/minecraft/world/level/storage/LevelStorageSource$LevelStorageAccess;Lcom/mojang/datafixers/DataFixer;ZLjava/util/function/BooleanSupplier;Lnet/minecraft/core/RegistryAccess;Z)V
|
public net.minecraft.server.Main forceUpgrade(Lnet/minecraft/world/level/storage/LevelStorageSource$LevelStorageAccess;Lcom/mojang/datafixers/DataFixer;ZLjava/util/function/BooleanSupplier;Lnet/minecraft/core/RegistryAccess;Z)V
|
||||||
public net.minecraft.server.MinecraftServer LOGGER
|
public net.minecraft.server.MinecraftServer LOGGER
|
||||||
public net.minecraft.server.RegistryLayer STATIC_ACCESS
|
public net.minecraft.server.RegistryLayer STATIC_ACCESS
|
||||||
public net.minecraft.server.ServerAdvancementManager advancements
|
|
||||||
public net.minecraft.server.Services USERID_CACHE_FILE
|
public net.minecraft.server.Services USERID_CACHE_FILE
|
||||||
public net.minecraft.server.dedicated.DedicatedServerProperties$WorldDimensionData
|
public net.minecraft.server.dedicated.DedicatedServerProperties$WorldDimensionData
|
||||||
public net.minecraft.server.dedicated.DedicatedServerProperties$WorldDimensionData <init>(Lcom/google/gson/JsonObject;Ljava/lang/String;)V
|
public net.minecraft.server.dedicated.DedicatedServerProperties$WorldDimensionData <init>(Lcom/google/gson/JsonObject;Ljava/lang/String;)V
|
||||||
@@ -76,6 +79,7 @@ public net.minecraft.server.level.ServerPlayer wardenSpawnTracker
|
|||||||
public net.minecraft.server.level.ServerPlayer$RespawnPosAngle
|
public net.minecraft.server.level.ServerPlayer$RespawnPosAngle
|
||||||
public net.minecraft.server.level.ServerPlayer$RespawnPosAngle <init>(Lnet/minecraft/world/phys/Vec3;FF)V
|
public net.minecraft.server.level.ServerPlayer$RespawnPosAngle <init>(Lnet/minecraft/world/phys/Vec3;FF)V
|
||||||
public net.minecraft.server.level.ServerPlayerGameMode hasDelayedDestroy
|
public net.minecraft.server.level.ServerPlayerGameMode hasDelayedDestroy
|
||||||
|
public net.minecraft.server.network.ServerCommandSuggestionsProvider limitSuggestionCount(Lcom/mojang/brigadier/suggestion/Suggestions;)Lcom/mojang/brigadier/suggestion/Suggestions;
|
||||||
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl clientInformation
|
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl clientInformation
|
||||||
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl currentTask
|
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl currentTask
|
||||||
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl finishCurrentTask(Lnet/minecraft/server/network/ConfigurationTask$Type;)V
|
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl finishCurrentTask(Lnet/minecraft/server/network/ConfigurationTask$Type;)V
|
||||||
@@ -120,6 +124,9 @@ public net.minecraft.world.entity.AgeableMob setAgeLocked(Z)V
|
|||||||
public net.minecraft.world.entity.AreaEffectCloud owner
|
public net.minecraft.world.entity.AreaEffectCloud owner
|
||||||
public net.minecraft.world.entity.AreaEffectCloud reapplicationDelay
|
public net.minecraft.world.entity.AreaEffectCloud reapplicationDelay
|
||||||
public net.minecraft.world.entity.Avatar DATA_PLAYER_MODE_CUSTOMISATION
|
public net.minecraft.world.entity.Avatar DATA_PLAYER_MODE_CUSTOMISATION
|
||||||
|
public net.minecraft.world.entity.ConversionTracker afflictionTime
|
||||||
|
public net.minecraft.world.entity.ConversionTracker conversionTime
|
||||||
|
public net.minecraft.world.entity.ConversionTracker setConverting(Z)V
|
||||||
public net.minecraft.world.entity.Display DATA_POS_ROT_INTERPOLATION_DURATION_ID
|
public net.minecraft.world.entity.Display DATA_POS_ROT_INTERPOLATION_DURATION_ID
|
||||||
public net.minecraft.world.entity.Display createTransformation(Lnet/minecraft/network/syncher/SynchedEntityData;)Lcom/mojang/math/Transformation;
|
public net.minecraft.world.entity.Display createTransformation(Lnet/minecraft/network/syncher/SynchedEntityData;)Lcom/mojang/math/Transformation;
|
||||||
public net.minecraft.world.entity.Display getBillboardConstraints()Lnet/minecraft/world/entity/Display$BillboardConstraints;
|
public net.minecraft.world.entity.Display getBillboardConstraints()Lnet/minecraft/world/entity/Display$BillboardConstraints;
|
||||||
@@ -161,6 +168,8 @@ public net.minecraft.world.entity.Display$TextDisplay setText(Lnet/minecraft/net
|
|||||||
public net.minecraft.world.entity.Display$TextDisplay setTextOpacity(B)V
|
public net.minecraft.world.entity.Display$TextDisplay setTextOpacity(B)V
|
||||||
public net.minecraft.world.entity.Entity DATA_TICKS_FROZEN
|
public net.minecraft.world.entity.Entity DATA_TICKS_FROZEN
|
||||||
public net.minecraft.world.entity.Entity FLAG_INVISIBLE
|
public net.minecraft.world.entity.Entity FLAG_INVISIBLE
|
||||||
|
public net.minecraft.world.entity.Entity getAirDrag()F
|
||||||
|
public net.minecraft.world.entity.Entity getDefaultGravity()D
|
||||||
public net.minecraft.world.entity.Entity getEncodeId()Ljava/lang/String;
|
public net.minecraft.world.entity.Entity getEncodeId()Ljava/lang/String;
|
||||||
public net.minecraft.world.entity.Entity getFireImmuneTicks()I
|
public net.minecraft.world.entity.Entity getFireImmuneTicks()I
|
||||||
public net.minecraft.world.entity.Entity getSharedFlag(I)Z
|
public net.minecraft.world.entity.Entity getSharedFlag(I)Z
|
||||||
@@ -335,8 +344,8 @@ public net.minecraft.world.entity.monster.Creeper explodeCreeper()V
|
|||||||
public net.minecraft.world.entity.monster.Creeper explosionRadius
|
public net.minecraft.world.entity.monster.Creeper explosionRadius
|
||||||
public net.minecraft.world.entity.monster.Creeper maxSwell
|
public net.minecraft.world.entity.monster.Creeper maxSwell
|
||||||
public net.minecraft.world.entity.monster.Creeper swell
|
public net.minecraft.world.entity.monster.Creeper swell
|
||||||
public net.minecraft.world.entity.monster.EnderMan teleport()Z
|
public net.minecraft.world.entity.monster.Enderman teleport()Z
|
||||||
public net.minecraft.world.entity.monster.EnderMan teleportTowards(Lnet/minecraft/world/entity/Entity;)Z
|
public net.minecraft.world.entity.monster.Enderman teleportTowards(Lnet/minecraft/world/entity/Entity;)Z
|
||||||
public net.minecraft.world.entity.monster.Endermite life
|
public net.minecraft.world.entity.monster.Endermite life
|
||||||
public net.minecraft.world.entity.monster.Guardian randomStrollGoal
|
public net.minecraft.world.entity.monster.Guardian randomStrollGoal
|
||||||
public net.minecraft.world.entity.monster.Guardian setActiveAttackTarget(I)V
|
public net.minecraft.world.entity.monster.Guardian setActiveAttackTarget(I)V
|
||||||
@@ -370,15 +379,13 @@ public net.minecraft.world.entity.monster.piglin.AbstractPiglin isImmuneToZombif
|
|||||||
public net.minecraft.world.entity.monster.piglin.AbstractPiglin timeInOverworld
|
public net.minecraft.world.entity.monster.piglin.AbstractPiglin timeInOverworld
|
||||||
public net.minecraft.world.entity.monster.piglin.Piglin cannotHunt
|
public net.minecraft.world.entity.monster.piglin.Piglin cannotHunt
|
||||||
public net.minecraft.world.entity.monster.piglin.Piglin isChargingCrossbow()Z
|
public net.minecraft.world.entity.monster.piglin.Piglin isChargingCrossbow()Z
|
||||||
public net.minecraft.world.entity.monster.skeleton.Skeleton conversionTime
|
public net.minecraft.world.entity.monster.skeleton.Skeleton freezingTracker
|
||||||
public net.minecraft.world.entity.monster.skeleton.Skeleton inPowderSnowTime
|
|
||||||
public net.minecraft.world.entity.monster.warden.WardenSpawnTracker cooldownTicks
|
public net.minecraft.world.entity.monster.warden.WardenSpawnTracker cooldownTicks
|
||||||
public net.minecraft.world.entity.monster.warden.WardenSpawnTracker increaseWarningLevel()V
|
public net.minecraft.world.entity.monster.warden.WardenSpawnTracker increaseWarningLevel()V
|
||||||
public net.minecraft.world.entity.monster.warden.WardenSpawnTracker ticksSinceLastWarning
|
public net.minecraft.world.entity.monster.warden.WardenSpawnTracker ticksSinceLastWarning
|
||||||
public net.minecraft.world.entity.monster.zombie.Zombie DOOR_BREAKING_PREDICATE
|
public net.minecraft.world.entity.monster.zombie.Zombie DOOR_BREAKING_PREDICATE
|
||||||
public net.minecraft.world.entity.monster.zombie.Zombie conversionTime
|
public net.minecraft.world.entity.monster.zombie.Zombie drowningTracker
|
||||||
public net.minecraft.world.entity.monster.zombie.Zombie isSunSensitive()Z
|
public net.minecraft.world.entity.monster.zombie.Zombie isSunSensitive()Z
|
||||||
public net.minecraft.world.entity.monster.zombie.Zombie startUnderWaterConversion(I)V
|
|
||||||
public net.minecraft.world.entity.monster.zombie.ZombieVillager DATA_CONVERTING_ID
|
public net.minecraft.world.entity.monster.zombie.ZombieVillager DATA_CONVERTING_ID
|
||||||
public net.minecraft.world.entity.monster.zombie.ZombieVillager conversionStarter
|
public net.minecraft.world.entity.monster.zombie.ZombieVillager conversionStarter
|
||||||
public net.minecraft.world.entity.monster.zombie.ZombieVillager villagerConversionTime
|
public net.minecraft.world.entity.monster.zombie.ZombieVillager villagerConversionTime
|
||||||
@@ -389,6 +396,7 @@ public net.minecraft.world.entity.npc.villager.Villager updateDemand()V
|
|||||||
public net.minecraft.world.entity.npc.villager.Villager updateSpecialPrices(Lnet/minecraft/world/entity/player/Player;)V
|
public net.minecraft.world.entity.npc.villager.Villager updateSpecialPrices(Lnet/minecraft/world/entity/player/Player;)V
|
||||||
public net.minecraft.world.entity.npc.wanderingtrader.WanderingTrader getWanderTarget()Lnet/minecraft/core/BlockPos;
|
public net.minecraft.world.entity.npc.wanderingtrader.WanderingTrader getWanderTarget()Lnet/minecraft/core/BlockPos;
|
||||||
public net.minecraft.world.entity.player.Inventory equipment
|
public net.minecraft.world.entity.player.Inventory equipment
|
||||||
|
public net.minecraft.world.entity.player.Player canCriticalAttack(Lnet/minecraft/world/entity/Entity;)Z
|
||||||
public net.minecraft.world.entity.player.Player closeContainer()V
|
public net.minecraft.world.entity.player.Player closeContainer()V
|
||||||
public net.minecraft.world.entity.player.Player enchantmentSeed
|
public net.minecraft.world.entity.player.Player enchantmentSeed
|
||||||
public net.minecraft.world.entity.player.Player hurtDir
|
public net.minecraft.world.entity.player.Player hurtDir
|
||||||
@@ -469,8 +477,10 @@ public net.minecraft.world.inventory.AbstractMountInventoryMenu mount
|
|||||||
public net.minecraft.world.inventory.AnvilMenu cost
|
public net.minecraft.world.inventory.AnvilMenu cost
|
||||||
public net.minecraft.world.inventory.AnvilMenu itemName
|
public net.minecraft.world.inventory.AnvilMenu itemName
|
||||||
public net.minecraft.world.inventory.AnvilMenu repairItemCountCost
|
public net.minecraft.world.inventory.AnvilMenu repairItemCountCost
|
||||||
|
public net.minecraft.world.inventory.BrewingStandMenu DATA_COUNT
|
||||||
public net.minecraft.world.inventory.BrewingStandMenu brewingStandData
|
public net.minecraft.world.inventory.BrewingStandMenu brewingStandData
|
||||||
public net.minecraft.world.inventory.CraftingMenu access
|
public net.minecraft.world.inventory.CraftingMenu access
|
||||||
|
public net.minecraft.world.inventory.LecternMenu DATA_COUNT
|
||||||
public net.minecraft.world.inventory.MerchantContainer selectionHint
|
public net.minecraft.world.inventory.MerchantContainer selectionHint
|
||||||
public net.minecraft.world.item.AdventureModePredicate predicates
|
public net.minecraft.world.item.AdventureModePredicate predicates
|
||||||
public net.minecraft.world.item.CrossbowItem FIREWORK_POWER
|
public net.minecraft.world.item.CrossbowItem FIREWORK_POWER
|
||||||
@@ -488,7 +498,6 @@ public net.minecraft.world.item.component.ResolvableProfile$Partial MAP_CODEC
|
|||||||
public net.minecraft.world.item.component.ResolvableProfile$Static <init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/world/entity/player/PlayerSkin$Patch;)V
|
public net.minecraft.world.item.component.ResolvableProfile$Static <init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/world/entity/player/PlayerSkin$Patch;)V
|
||||||
public net.minecraft.world.item.context.UseOnContext <init>(Lnet/minecraft/world/level/Level;Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/InteractionHand;Lnet/minecraft/world/item/ItemStack;Lnet/minecraft/world/phys/BlockHitResult;)V
|
public net.minecraft.world.item.context.UseOnContext <init>(Lnet/minecraft/world/level/Level;Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/InteractionHand;Lnet/minecraft/world/item/ItemStack;Lnet/minecraft/world/phys/BlockHitResult;)V
|
||||||
public net.minecraft.world.item.crafting.Ingredient values
|
public net.minecraft.world.item.crafting.Ingredient values
|
||||||
public net.minecraft.world.item.crafting.RecipeManager recipes
|
|
||||||
public net.minecraft.world.item.crafting.RecipeMap byKey
|
public net.minecraft.world.item.crafting.RecipeMap byKey
|
||||||
public net.minecraft.world.item.crafting.RecipeMap byType
|
public net.minecraft.world.item.crafting.RecipeMap byType
|
||||||
public net.minecraft.world.item.trading.MerchantOffer demand
|
public net.minecraft.world.item.trading.MerchantOffer demand
|
||||||
@@ -523,14 +532,15 @@ public net.minecraft.world.level.block.ComposterBlock$InputContainer
|
|||||||
public net.minecraft.world.level.block.ComposterBlock$OutputContainer
|
public net.minecraft.world.level.block.ComposterBlock$OutputContainer
|
||||||
public net.minecraft.world.level.block.DispenserBlock dispenseFrom(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/core/BlockPos;)V
|
public net.minecraft.world.level.block.DispenserBlock dispenseFrom(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/core/BlockPos;)V
|
||||||
public net.minecraft.world.level.block.FireBlock igniteOdds
|
public net.minecraft.world.level.block.FireBlock igniteOdds
|
||||||
public net.minecraft.world.level.block.RedStoneWireBlock canSurvive(Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/LevelReader;Lnet/minecraft/core/BlockPos;)Z
|
public net.minecraft.world.level.block.RedstoneWireBlock canSurvive(Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/LevelReader;Lnet/minecraft/core/BlockPos;)Z
|
||||||
public net.minecraft.world.level.block.RedStoneWireBlock shouldSignal
|
public net.minecraft.world.level.block.RedstoneWireBlock shouldSignal
|
||||||
public net.minecraft.world.level.block.SelectableSlotContainer getSection(FI)I
|
public net.minecraft.world.level.block.SelectableSlotContainer getSection(FI)I
|
||||||
public net.minecraft.world.level.block.TurtleEggBlock decreaseEggs(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;)V
|
public net.minecraft.world.level.block.TurtleEggBlock decreaseEggs(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;)V
|
||||||
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity cookingTimer
|
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity cookingTimer
|
||||||
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity cookingTotalTime
|
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity cookingTotalTime
|
||||||
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity getTotalCookTime(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity;)I
|
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity getTotalCookTime(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity;)I
|
||||||
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity litTimeRemaining
|
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity litTimeRemaining
|
||||||
|
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity quickCheck
|
||||||
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity recipesUsed
|
public net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity recipesUsed
|
||||||
public net.minecraft.world.level.block.entity.BannerBlockEntity name
|
public net.minecraft.world.level.block.entity.BannerBlockEntity name
|
||||||
public net.minecraft.world.level.block.entity.BarrelBlockEntity openersCounter
|
public net.minecraft.world.level.block.entity.BarrelBlockEntity openersCounter
|
||||||
@@ -547,6 +557,7 @@ public net.minecraft.world.level.block.entity.BlockEntity saveId(Lnet/minecraft/
|
|||||||
public net.minecraft.world.level.block.entity.BlockEntityType validBlocks
|
public net.minecraft.world.level.block.entity.BlockEntityType validBlocks
|
||||||
public net.minecraft.world.level.block.entity.BrewingStandBlockEntity brewTime
|
public net.minecraft.world.level.block.entity.BrewingStandBlockEntity brewTime
|
||||||
public net.minecraft.world.level.block.entity.BrewingStandBlockEntity fuel
|
public net.minecraft.world.level.block.entity.BrewingStandBlockEntity fuel
|
||||||
|
public net.minecraft.world.level.block.entity.BrewingStandBlockEntity totalBrewTime
|
||||||
public net.minecraft.world.level.block.entity.BrushableBlockEntity item
|
public net.minecraft.world.level.block.entity.BrushableBlockEntity item
|
||||||
public net.minecraft.world.level.block.entity.BrushableBlockEntity lootTable
|
public net.minecraft.world.level.block.entity.BrushableBlockEntity lootTable
|
||||||
public net.minecraft.world.level.block.entity.BrushableBlockEntity lootTableSeed
|
public net.minecraft.world.level.block.entity.BrushableBlockEntity lootTableSeed
|
||||||
@@ -574,6 +585,7 @@ public net.minecraft.world.level.block.entity.LecternBlockEntity bookAccess
|
|||||||
public net.minecraft.world.level.block.entity.LecternBlockEntity setPage(I)V
|
public net.minecraft.world.level.block.entity.LecternBlockEntity setPage(I)V
|
||||||
public net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener bloom(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/util/RandomSource;)V
|
public net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener bloom(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/util/RandomSource;)V
|
||||||
public net.minecraft.world.level.block.entity.SculkShriekerBlockEntity warningLevel
|
public net.minecraft.world.level.block.entity.SculkShriekerBlockEntity warningLevel
|
||||||
|
public net.minecraft.world.level.block.entity.SignBlockEntity allowOpFeatures
|
||||||
public net.minecraft.world.level.block.entity.SkullBlockEntity customName
|
public net.minecraft.world.level.block.entity.SkullBlockEntity customName
|
||||||
public net.minecraft.world.level.block.entity.SkullBlockEntity noteBlockSound
|
public net.minecraft.world.level.block.entity.SkullBlockEntity noteBlockSound
|
||||||
public net.minecraft.world.level.block.entity.SkullBlockEntity owner
|
public net.minecraft.world.level.block.entity.SkullBlockEntity owner
|
||||||
@@ -621,21 +633,13 @@ public net.minecraft.world.level.dimension.end.EnderDragonFight spawnNewGateway(
|
|||||||
public net.minecraft.world.level.entity.PersistentEntitySectionManager ensureChunkQueuedForLoad(J)V
|
public net.minecraft.world.level.entity.PersistentEntitySectionManager ensureChunkQueuedForLoad(J)V
|
||||||
public net.minecraft.world.level.entity.PersistentEntitySectionManager permanentStorage
|
public net.minecraft.world.level.entity.PersistentEntitySectionManager permanentStorage
|
||||||
public net.minecraft.world.level.gamerules.GameRules rules
|
public net.minecraft.world.level.gamerules.GameRules rules
|
||||||
public net.minecraft.world.level.levelgen.SurfaceRules$Condition
|
public net.minecraft.world.level.levelgen.material.MaterialRuleContext context
|
||||||
public net.minecraft.world.level.levelgen.SurfaceRules$Context
|
|
||||||
public net.minecraft.world.level.levelgen.SurfaceRules$Context blockX
|
|
||||||
public net.minecraft.world.level.levelgen.SurfaceRules$Context blockY
|
|
||||||
public net.minecraft.world.level.levelgen.SurfaceRules$Context blockZ
|
|
||||||
public net.minecraft.world.level.levelgen.SurfaceRules$Context context
|
|
||||||
public net.minecraft.world.level.levelgen.SurfaceRules$Context randomState
|
|
||||||
public net.minecraft.world.level.levelgen.SurfaceRules$LazyCondition
|
|
||||||
public net.minecraft.world.level.levelgen.SurfaceRules$LazyYCondition
|
|
||||||
public net.minecraft.world.level.levelgen.structure.StructurePiece SHAPE_CHECK_BLOCKS
|
public net.minecraft.world.level.levelgen.structure.StructurePiece SHAPE_CHECK_BLOCKS
|
||||||
public net.minecraft.world.level.levelgen.structure.placement.StructurePlacement exclusionZone
|
public net.minecraft.world.level.levelgen.structure.placement.AbstractSpreadingStructurePlacement exclusionZone
|
||||||
public net.minecraft.world.level.levelgen.structure.placement.StructurePlacement frequency
|
public net.minecraft.world.level.levelgen.structure.placement.AbstractSpreadingStructurePlacement frequency
|
||||||
public net.minecraft.world.level.levelgen.structure.placement.StructurePlacement frequencyReductionMethod
|
public net.minecraft.world.level.levelgen.structure.placement.AbstractSpreadingStructurePlacement frequencyReductionMethod
|
||||||
public net.minecraft.world.level.levelgen.structure.placement.StructurePlacement locateOffset
|
public net.minecraft.world.level.levelgen.structure.placement.AbstractSpreadingStructurePlacement locateOffset
|
||||||
public net.minecraft.world.level.levelgen.structure.placement.StructurePlacement salt
|
public net.minecraft.world.level.levelgen.structure.placement.AbstractSpreadingStructurePlacement salt
|
||||||
public net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate entityInfoList
|
public net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate entityInfoList
|
||||||
public net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate palettes
|
public net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate palettes
|
||||||
public net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager resourceManagerSource
|
public net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager resourceManagerSource
|
||||||
@@ -651,11 +655,13 @@ public net.minecraft.world.level.saveddata.maps.MapItemSavedData decorations
|
|||||||
public net.minecraft.world.level.storage.PrimaryLevelData settings
|
public net.minecraft.world.level.storage.PrimaryLevelData settings
|
||||||
public net.minecraft.world.level.storage.SavedDataStorage cache
|
public net.minecraft.world.level.storage.SavedDataStorage cache
|
||||||
public net.minecraft.world.level.storage.TagValueInput input
|
public net.minecraft.world.level.storage.TagValueInput input
|
||||||
|
public net.minecraft.world.level.storage.loot.providers.number.ints.ResolvableInt$Reference getProvider(Lnet/minecraft/world/level/storage/loot/LootContext;)Ljava/util/Optional;
|
||||||
public net.minecraft.world.scores.criteria.ObjectiveCriteria CRITERIA_CACHE
|
public net.minecraft.world.scores.criteria.ObjectiveCriteria CRITERIA_CACHE
|
||||||
public-f net.minecraft.server.MinecraftServer potionBrewing
|
|
||||||
public-f net.minecraft.server.MinecraftServer storageSource
|
public-f net.minecraft.server.MinecraftServer storageSource
|
||||||
|
public-f net.minecraft.server.ServerAdvancementManager advancements
|
||||||
public-f net.minecraft.server.dedicated.DedicatedServer serverLinks
|
public-f net.minecraft.server.dedicated.DedicatedServer serverLinks
|
||||||
public-f net.minecraft.server.dedicated.DedicatedServer settings
|
public-f net.minecraft.server.dedicated.DedicatedServer settings
|
||||||
|
public-f net.minecraft.world.entity.Entity doTeamsAllowDamage(Lnet/minecraft/world/entity/Entity;)Z
|
||||||
public-f net.minecraft.world.entity.LivingEntity combatTracker
|
public-f net.minecraft.world.entity.LivingEntity combatTracker
|
||||||
public-f net.minecraft.world.entity.Mob targetSelector
|
public-f net.minecraft.world.entity.Mob targetSelector
|
||||||
public-f net.minecraft.world.entity.ai.attributes.RangedAttribute maxValue
|
public-f net.minecraft.world.entity.ai.attributes.RangedAttribute maxValue
|
||||||
@@ -666,6 +672,7 @@ public-f net.minecraft.world.inventory.AbstractContainerMenu lastSlots
|
|||||||
public-f net.minecraft.world.inventory.AbstractContainerMenu remoteDataSlots
|
public-f net.minecraft.world.inventory.AbstractContainerMenu remoteDataSlots
|
||||||
public-f net.minecraft.world.inventory.AbstractContainerMenu remoteSlots
|
public-f net.minecraft.world.inventory.AbstractContainerMenu remoteSlots
|
||||||
public-f net.minecraft.world.inventory.AbstractContainerMenu slots
|
public-f net.minecraft.world.inventory.AbstractContainerMenu slots
|
||||||
|
public-f net.minecraft.world.item.crafting.RecipeManager recipes
|
||||||
public-f net.minecraft.world.item.trading.MerchantOffer baseCostA
|
public-f net.minecraft.world.item.trading.MerchantOffer baseCostA
|
||||||
public-f net.minecraft.world.item.trading.MerchantOffer costB
|
public-f net.minecraft.world.item.trading.MerchantOffer costB
|
||||||
public-f net.minecraft.world.item.trading.MerchantOffer maxUses
|
public-f net.minecraft.world.item.trading.MerchantOffer maxUses
|
||||||
|
|||||||
+4
-24
@@ -1,16 +1,15 @@
|
|||||||
import io.papermc.paperweight.checkstyle.PaperCheckstyleExt
|
|
||||||
import io.papermc.paperweight.checkstyle.tasks.PaperCheckstyleTask
|
|
||||||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("io.papermc.paperweight.core") version "2.0.0-beta.21" apply false
|
id("io.papermc.paperweight.core") version "2.0.0-beta.24" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply {
|
apply {
|
||||||
plugin("java-library")
|
plugin("java-library")
|
||||||
plugin("maven-publish")
|
plugin("maven-publish")
|
||||||
|
plugin("io.papermc.paperweight.paper-checkstyle")
|
||||||
}
|
}
|
||||||
|
|
||||||
extensions.configure<JavaPluginExtension> {
|
extensions.configure<JavaPluginExtension> {
|
||||||
@@ -19,27 +18,8 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val tempDisabled = setOf("paper-server", "paper-generator", "test-plugin")
|
dependencies {
|
||||||
|
"checkstyle"(project(":paper-checkstyle"))
|
||||||
if (name !in tempDisabled) {
|
|
||||||
apply { plugin("io.papermc.paperweight.paper-checkstyle") }
|
|
||||||
extensions.configure<PaperCheckstyleExt> {
|
|
||||||
typeUseAnnotationsFile.set(rootProject.layout.projectDirectory.file(".checkstyle/type_use_annotations.txt"))
|
|
||||||
}
|
|
||||||
|
|
||||||
/*tasks.withType<PaperCheckstyleTask>().configureEach {
|
|
||||||
configDirectory = rootProject.layout.projectDirectory.dir(".checkstyle")
|
|
||||||
// configFile = layout.projectDirectory.file(".checkstyle/checkstyle.xml").asFile // use the base file if not overwritten
|
|
||||||
maxHeapSize = "2g"
|
|
||||||
reports {
|
|
||||||
xml.required = true
|
|
||||||
html.required = true
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
"checkstyle"(project(":paper-checkstyle"))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
group=io.papermc.paper
|
group=io.papermc.paper
|
||||||
mcVersion=26.2
|
mcVersion=26.3
|
||||||
# This is the current API version for use in (paper-)plugin.yml files
|
# This is the current API version for use in (paper-)plugin.yml files
|
||||||
# During snapshot cycles this should be the anticipated version of the release target
|
# During snapshot cycles this should be the anticipated version of the release target
|
||||||
apiVersion=26.2
|
apiVersion=26.3
|
||||||
channel=STABLE
|
channel=STABLE
|
||||||
|
|
||||||
# Set to true while updating Minecraft version
|
# Set to true while updating Minecraft version
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
+3
-1
@@ -1,7 +1,9 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.0-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
|
retries=0
|
||||||
|
retryBackOffMs=500
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Gradle start up script for POSIX generated by Gradle.
|
# gradlew start up script for POSIX generated by Gradle.
|
||||||
#
|
#
|
||||||
# Important for running:
|
# Important for running:
|
||||||
#
|
#
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
# bash, then to run this script, type that shell name before the whole
|
# bash, then to run this script, type that shell name before the whole
|
||||||
# command line, like:
|
# command line, like:
|
||||||
#
|
#
|
||||||
# ksh Gradle
|
# ksh gradlew
|
||||||
#
|
#
|
||||||
# Busybox and similar reduced shells will NOT work, because this script
|
# Busybox and similar reduced shells will NOT work, because this script
|
||||||
# requires all of these POSIX shell features:
|
# requires all of these POSIX shell features:
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
|||||||
Vendored
+52
-33
@@ -19,12 +19,39 @@
|
|||||||
@if "%DEBUG%"=="" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@rem Gradle startup script for Windows
|
@rem gradlew startup script for Windows
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
@rem Set local scope for the variables, and ensure extensions are enabled
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
setlocal EnableExtensions
|
||||||
|
|
||||||
|
@rem Catch executions from older scripts and ensure they exit cleanly.
|
||||||
|
@rem This can be removed once we can be reasonably confident that few people
|
||||||
|
@rem will be migrating directly to this new wrapper.
|
||||||
|
goto afterSafetyNet
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
goto exitWithErrorLevel
|
||||||
|
:afterSafetyNet
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%"=="" set DIRNAME=.
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
@@ -45,13 +72,14 @@ set JAVA_EXE=java.exe
|
|||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if %ERRORLEVEL% equ 0 goto execute
|
if %ERRORLEVEL% equ 0 goto execute
|
||||||
|
|
||||||
echo. 1>&2
|
1>&2 echo.
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
echo. 1>&2
|
1>&2 echo.
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
echo location of your Java installation. 1>&2
|
1>&2 echo location of your Java installation.
|
||||||
|
|
||||||
goto fail
|
"%COMSPEC%" /c exit 1
|
||||||
|
goto exitWithErrorLevel
|
||||||
|
|
||||||
:findJavaFromJavaHome
|
:findJavaFromJavaHome
|
||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
@@ -59,35 +87,26 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|||||||
|
|
||||||
if exist "%JAVA_EXE%" goto execute
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
echo. 1>&2
|
1>&2 echo.
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||||
echo. 1>&2
|
1>&2 echo.
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
echo location of your Java installation. 1>&2
|
1>&2 echo location of your Java installation.
|
||||||
|
|
||||||
goto fail
|
"%COMSPEC%" /c exit 1
|
||||||
|
goto exitWithErrorLevel
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute gradlew
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
|
||||||
|
@rem which allows us to clear the local environment before executing the java command
|
||||||
|
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel & goto exitWithErrorLevel
|
||||||
|
|
||||||
:end
|
@rem This label must not be changed. We rely on old scripts being able to jump to this point.
|
||||||
@rem End local scope for the variables with windows NT shell
|
:exitWithErrorLevel
|
||||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
|
||||||
|
"%COMSPEC%" /c exit %ERRORLEVEL%
|
||||||
:fail
|
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
||||||
rem the _cmd.exe /c_ return code!
|
|
||||||
set EXIT_CODE=%ERRORLEVEL%
|
|
||||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
|
||||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
|
||||||
exit /b %EXIT_CODE%
|
|
||||||
|
|
||||||
:mainEnd
|
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
|
||||||
|
|
||||||
:omega
|
|
||||||
@@ -2,6 +2,11 @@
|
|||||||
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
||||||
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
||||||
<module name="Checker">
|
<module name="Checker">
|
||||||
|
<!--generated sources are written by the generator, so we don't control their format-->
|
||||||
|
<module name="BeforeExecutionExclusionFileFilter">
|
||||||
|
<property name="fileNamePattern" value="[\\/]paper-api[\\/]src[\\/]generated[\\/]"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
<!--Single Suppression Filters-->
|
<!--Single Suppression Filters-->
|
||||||
<module name="io.papermc.checkstyle.filters.BetterSuppressionSingleFilter">
|
<module name="io.papermc.checkstyle.filters.BetterSuppressionSingleFilter">
|
||||||
<property name="checks" value="Javadoc(Method|Type)"/>
|
<property name="checks" value="Javadoc(Method|Type)"/>
|
||||||
@@ -10,6 +15,11 @@
|
|||||||
<property name="arguments" value="(${custom_javadoc_tags}|[A-Z].*)"/>
|
<property name="arguments" value="(${custom_javadoc_tags}|[A-Z].*)"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="TreeWalker">
|
<module name="TreeWalker">
|
||||||
|
<!--Skip generated content by typewriter-->
|
||||||
|
<module name="SuppressionCommentFilter">
|
||||||
|
<property name="offCommentFormat" value="Start generate - \w+$"/>
|
||||||
|
<property name="onCommentFormat" value="End generate - \w+$"/>
|
||||||
|
</module>
|
||||||
<module name="JavadocVariable">
|
<module name="JavadocVariable">
|
||||||
<!--requires on public fields-->
|
<!--requires on public fields-->
|
||||||
<property name="accessModifiers" value="public"/>
|
<property name="accessModifiers" value="public"/>
|
||||||
@@ -20,7 +30,7 @@
|
|||||||
</module>
|
</module>
|
||||||
<module name="MissingJavadocPackage"/>
|
<module name="MissingJavadocPackage"/>
|
||||||
<module name="MissingJavadocType">
|
<module name="MissingJavadocType">
|
||||||
<property name="skipAnnotations" value="Generated, ApiStatus.Internal" />
|
<property name="skipAnnotations" value="Generated, ApiStatus.Internal"/>
|
||||||
</module>
|
</module>
|
||||||
</module>
|
</module>
|
||||||
</module>
|
</module>
|
||||||
@@ -1,121 +1,59 @@
|
|||||||
paper-api/src/generated/java/com/destroystokyo/paper/entity/ai/
|
|
||||||
paper-api/src/generated/java/io/papermc/paper/registry/keys/
|
|
||||||
paper-api/src/generated/java/io/papermc/paper/registry/keys/tags/
|
|
||||||
paper-api/src/main/java/co/aikar/timings/
|
paper-api/src/main/java/co/aikar/timings/
|
||||||
paper-api/src/main/java/co/aikar/util/
|
paper-api/src/main/java/co/aikar/util/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/
|
paper-api/src/main/java/com/destroystokyo/paper/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/block/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/brigadier/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/entity/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/entity/ai/
|
paper-api/src/main/java/com/destroystokyo/paper/entity/ai/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/entity/villager/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/event/block/
|
paper-api/src/main/java/com/destroystokyo/paper/event/block/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/event/brigadier/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/event/entity/
|
paper-api/src/main/java/com/destroystokyo/paper/event/entity/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/event/inventory/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/event/player/
|
paper-api/src/main/java/com/destroystokyo/paper/event/player/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/event/profile/
|
paper-api/src/main/java/com/destroystokyo/paper/event/profile/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/event/server/
|
paper-api/src/main/java/com/destroystokyo/paper/event/server/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/exception/
|
paper-api/src/main/java/com/destroystokyo/paper/exception/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/inventory/meta/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/loottable/
|
paper-api/src/main/java/com/destroystokyo/paper/loottable/
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/network/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/profile/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/util/
|
|
||||||
paper-api/src/main/java/com/destroystokyo/paper/utils/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/advancement/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/annotation/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/ban/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/block/
|
paper-api/src/main/java/io/papermc/paper/block/
|
||||||
paper-api/src/main/java/io/papermc/paper/block/bed/
|
paper-api/src/main/java/io/papermc/paper/block/bed/
|
||||||
paper-api/src/main/java/io/papermc/paper/block/fluid/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/block/fluid/type/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/brigadier/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/chat/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/command/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/command/brigadier/
|
paper-api/src/main/java/io/papermc/paper/command/brigadier/
|
||||||
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/
|
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/
|
||||||
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/position/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/predicate/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/range/
|
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/range/
|
||||||
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/resolvers/
|
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/resolvers/
|
||||||
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/resolvers/selector/
|
paper-api/src/main/java/io/papermc/paper/command/brigadier/argument/resolvers/selector/
|
||||||
paper-api/src/main/java/io/papermc/paper/configuration/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/connection/
|
paper-api/src/main/java/io/papermc/paper/connection/
|
||||||
paper-api/src/main/java/io/papermc/paper/datacomponent/
|
paper-api/src/main/java/io/papermc/paper/datacomponent/
|
||||||
paper-api/src/main/java/io/papermc/paper/datacomponent/item/
|
paper-api/src/main/java/io/papermc/paper/datacomponent/item/
|
||||||
paper-api/src/main/java/io/papermc/paper/datacomponent/item/attribute/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/datacomponent/item/blocksattacks/
|
paper-api/src/main/java/io/papermc/paper/datacomponent/item/blocksattacks/
|
||||||
paper-api/src/main/java/io/papermc/paper/datacomponent/item/consumable/
|
paper-api/src/main/java/io/papermc/paper/datacomponent/item/consumable/
|
||||||
paper-api/src/main/java/io/papermc/paper/datapack/
|
paper-api/src/main/java/io/papermc/paper/datapack/
|
||||||
paper-api/src/main/java/io/papermc/paper/dialog/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/enchantments/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/entity/
|
paper-api/src/main/java/io/papermc/paper/entity/
|
||||||
paper-api/src/main/java/io/papermc/paper/entity/poi/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/event/block/
|
paper-api/src/main/java/io/papermc/paper/event/block/
|
||||||
paper-api/src/main/java/io/papermc/paper/event/connection/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/event/connection/configuration/
|
paper-api/src/main/java/io/papermc/paper/event/connection/configuration/
|
||||||
paper-api/src/main/java/io/papermc/paper/event/entity/
|
paper-api/src/main/java/io/papermc/paper/event/entity/
|
||||||
paper-api/src/main/java/io/papermc/paper/event/executor/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/event/inventory/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/event/packet/
|
paper-api/src/main/java/io/papermc/paper/event/packet/
|
||||||
paper-api/src/main/java/io/papermc/paper/event/player/
|
paper-api/src/main/java/io/papermc/paper/event/player/
|
||||||
paper-api/src/main/java/io/papermc/paper/event/server/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/event/world/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/event/world/border/
|
paper-api/src/main/java/io/papermc/paper/event/world/border/
|
||||||
paper-api/src/main/java/io/papermc/paper/generated/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/inventory/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/inventory/tooltip/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/item/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/persistence/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/bootstrap/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/configuration/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/lifecycle/event/
|
paper-api/src/main/java/io/papermc/paper/plugin/lifecycle/event/
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/lifecycle/event/handler/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/lifecycle/event/handler/configuration/
|
paper-api/src/main/java/io/papermc/paper/plugin/lifecycle/event/handler/configuration/
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/lifecycle/event/registrar/
|
paper-api/src/main/java/io/papermc/paper/plugin/lifecycle/event/registrar/
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/lifecycle/event/types/
|
paper-api/src/main/java/io/papermc/paper/plugin/lifecycle/event/types/
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/loader/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/loader/library/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/loader/library/impl/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/provider/classloader/
|
paper-api/src/main/java/io/papermc/paper/plugin/provider/classloader/
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/provider/entrypoint/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/plugin/provider/util/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/potion/
|
paper-api/src/main/java/io/papermc/paper/potion/
|
||||||
paper-api/src/main/java/io/papermc/paper/raytracing/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/
|
paper-api/src/main/java/io/papermc/paper/registry/
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/data/
|
paper-api/src/main/java/io/papermc/paper/registry/data/
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/data/client/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/data/dialog/
|
paper-api/src/main/java/io/papermc/paper/registry/data/dialog/
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/data/dialog/action/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/data/dialog/body/
|
paper-api/src/main/java/io/papermc/paper/registry/data/dialog/body/
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/data/dialog/input/
|
paper-api/src/main/java/io/papermc/paper/registry/data/dialog/input/
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/data/dialog/type/
|
paper-api/src/main/java/io/papermc/paper/registry/data/dialog/type/
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/event/
|
paper-api/src/main/java/io/papermc/paper/registry/event/
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/event/type/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/holder/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/set/
|
paper-api/src/main/java/io/papermc/paper/registry/set/
|
||||||
paper-api/src/main/java/io/papermc/paper/registry/tag/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/scoreboard/numbers/
|
paper-api/src/main/java/io/papermc/paper/scoreboard/numbers/
|
||||||
paper-api/src/main/java/io/papermc/paper/tag/
|
paper-api/src/main/java/io/papermc/paper/tag/
|
||||||
paper-api/src/main/java/io/papermc/paper/text/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/threadedregions/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/threadedregions/scheduler/
|
paper-api/src/main/java/io/papermc/paper/threadedregions/scheduler/
|
||||||
paper-api/src/main/java/io/papermc/paper/util/
|
paper-api/src/main/java/io/papermc/paper/util/
|
||||||
paper-api/src/main/java/io/papermc/paper/world/
|
|
||||||
paper-api/src/main/java/io/papermc/paper/world/damagesource/
|
paper-api/src/main/java/io/papermc/paper/world/damagesource/
|
||||||
paper-api/src/main/java/io/papermc/paper/world/flag/
|
|
||||||
paper-api/src/main/java/org/bukkit/
|
paper-api/src/main/java/org/bukkit/
|
||||||
paper-api/src/main/java/org/bukkit/advancement/
|
paper-api/src/main/java/org/bukkit/advancement/
|
||||||
paper-api/src/main/java/org/bukkit/attribute/
|
paper-api/src/main/java/org/bukkit/attribute/
|
||||||
paper-api/src/main/java/org/bukkit/ban/
|
|
||||||
paper-api/src/main/java/org/bukkit/block/
|
paper-api/src/main/java/org/bukkit/block/
|
||||||
paper-api/src/main/java/org/bukkit/block/banner/
|
|
||||||
paper-api/src/main/java/org/bukkit/block/data/
|
paper-api/src/main/java/org/bukkit/block/data/
|
||||||
paper-api/src/main/java/org/bukkit/block/data/type/
|
paper-api/src/main/java/org/bukkit/block/data/type/
|
||||||
paper-api/src/main/java/org/bukkit/block/sign/
|
|
||||||
paper-api/src/main/java/org/bukkit/block/spawner/
|
|
||||||
paper-api/src/main/java/org/bukkit/block/structure/
|
paper-api/src/main/java/org/bukkit/block/structure/
|
||||||
paper-api/src/main/java/org/bukkit/boss/
|
paper-api/src/main/java/org/bukkit/boss/
|
||||||
paper-api/src/main/java/org/bukkit/command/
|
paper-api/src/main/java/org/bukkit/command/
|
||||||
@@ -128,12 +66,9 @@ paper-api/src/main/java/org/bukkit/damage/
|
|||||||
paper-api/src/main/java/org/bukkit/enchantments/
|
paper-api/src/main/java/org/bukkit/enchantments/
|
||||||
paper-api/src/main/java/org/bukkit/entity/
|
paper-api/src/main/java/org/bukkit/entity/
|
||||||
paper-api/src/main/java/org/bukkit/entity/boat/
|
paper-api/src/main/java/org/bukkit/entity/boat/
|
||||||
paper-api/src/main/java/org/bukkit/entity/memory/
|
|
||||||
paper-api/src/main/java/org/bukkit/entity/minecart/
|
paper-api/src/main/java/org/bukkit/entity/minecart/
|
||||||
paper-api/src/main/java/org/bukkit/event/
|
paper-api/src/main/java/org/bukkit/event/
|
||||||
paper-api/src/main/java/org/bukkit/event/block/
|
paper-api/src/main/java/org/bukkit/event/block/
|
||||||
paper-api/src/main/java/org/bukkit/event/command/
|
|
||||||
paper-api/src/main/java/org/bukkit/event/enchantment/
|
|
||||||
paper-api/src/main/java/org/bukkit/event/entity/
|
paper-api/src/main/java/org/bukkit/event/entity/
|
||||||
paper-api/src/main/java/org/bukkit/event/hanging/
|
paper-api/src/main/java/org/bukkit/event/hanging/
|
||||||
paper-api/src/main/java/org/bukkit/event/inventory/
|
paper-api/src/main/java/org/bukkit/event/inventory/
|
||||||
@@ -151,51 +86,28 @@ paper-api/src/main/java/org/bukkit/inventory/meta/
|
|||||||
paper-api/src/main/java/org/bukkit/inventory/meta/components/
|
paper-api/src/main/java/org/bukkit/inventory/meta/components/
|
||||||
paper-api/src/main/java/org/bukkit/inventory/meta/tags/
|
paper-api/src/main/java/org/bukkit/inventory/meta/tags/
|
||||||
paper-api/src/main/java/org/bukkit/inventory/meta/trim/
|
paper-api/src/main/java/org/bukkit/inventory/meta/trim/
|
||||||
paper-api/src/main/java/org/bukkit/inventory/recipe/
|
|
||||||
paper-api/src/main/java/org/bukkit/inventory/view/
|
paper-api/src/main/java/org/bukkit/inventory/view/
|
||||||
paper-api/src/main/java/org/bukkit/inventory/view/builder/
|
paper-api/src/main/java/org/bukkit/inventory/view/builder/
|
||||||
paper-api/src/main/java/org/bukkit/loot/
|
paper-api/src/main/java/org/bukkit/loot/
|
||||||
paper-api/src/main/java/org/bukkit/map/
|
paper-api/src/main/java/org/bukkit/map/
|
||||||
paper-api/src/main/java/org/bukkit/material/
|
paper-api/src/main/java/org/bukkit/material/
|
||||||
paper-api/src/main/java/org/bukkit/material/types/
|
|
||||||
paper-api/src/main/java/org/bukkit/metadata/
|
paper-api/src/main/java/org/bukkit/metadata/
|
||||||
paper-api/src/main/java/org/bukkit/packs/
|
|
||||||
paper-api/src/main/java/org/bukkit/permissions/
|
paper-api/src/main/java/org/bukkit/permissions/
|
||||||
paper-api/src/main/java/org/bukkit/persistence/
|
paper-api/src/main/java/org/bukkit/persistence/
|
||||||
paper-api/src/main/java/org/bukkit/plugin/
|
paper-api/src/main/java/org/bukkit/plugin/
|
||||||
paper-api/src/main/java/org/bukkit/plugin/java/
|
paper-api/src/main/java/org/bukkit/plugin/java/
|
||||||
paper-api/src/main/java/org/bukkit/plugin/messaging/
|
paper-api/src/main/java/org/bukkit/plugin/messaging/
|
||||||
paper-api/src/main/java/org/bukkit/potion/
|
paper-api/src/main/java/org/bukkit/potion/
|
||||||
paper-api/src/main/java/org/bukkit/profile/
|
|
||||||
paper-api/src/main/java/org/bukkit/projectiles/
|
|
||||||
paper-api/src/main/java/org/bukkit/scheduler/
|
paper-api/src/main/java/org/bukkit/scheduler/
|
||||||
paper-api/src/main/java/org/bukkit/scoreboard/
|
paper-api/src/main/java/org/bukkit/scoreboard/
|
||||||
paper-api/src/main/java/org/bukkit/spawner/
|
paper-api/src/main/java/org/bukkit/spawner/
|
||||||
paper-api/src/main/java/org/bukkit/structure/
|
paper-api/src/main/java/org/bukkit/structure/
|
||||||
paper-api/src/main/java/org/bukkit/tag/
|
|
||||||
paper-api/src/main/java/org/bukkit/util/
|
paper-api/src/main/java/org/bukkit/util/
|
||||||
paper-api/src/main/java/org/bukkit/util/io/
|
paper-api/src/main/java/org/bukkit/util/io/
|
||||||
paper-api/src/main/java/org/bukkit/util/noise/
|
paper-api/src/main/java/org/bukkit/util/noise/
|
||||||
paper-api/src/main/java/org/bukkit/util/permissions/
|
paper-api/src/main/java/org/bukkit/util/permissions/
|
||||||
paper-api/src/main/java/org/spigotmc/
|
|
||||||
paper-api/src/main/java/org/spigotmc/event/player/
|
|
||||||
paper-api/src/test/java/com/destroystokyo/paper/
|
|
||||||
paper-api/src/test/java/io/papermc/paper/adventure/
|
|
||||||
paper-api/src/test/java/io/papermc/paper/registry/
|
|
||||||
paper-api/src/test/java/io/papermc/paper/testing/
|
|
||||||
paper-api/src/test/java/io/papermc/paper/util/
|
|
||||||
paper-api/src/test/java/org/bukkit/
|
paper-api/src/test/java/org/bukkit/
|
||||||
paper-api/src/test/java/org/bukkit/configuration/
|
paper-api/src/test/java/org/bukkit/configuration/
|
||||||
paper-api/src/test/java/org/bukkit/configuration/file/
|
|
||||||
paper-api/src/test/java/org/bukkit/conversations/
|
paper-api/src/test/java/org/bukkit/conversations/
|
||||||
paper-api/src/test/java/org/bukkit/event/
|
|
||||||
paper-api/src/test/java/org/bukkit/materials/
|
|
||||||
paper-api/src/test/java/org/bukkit/metadata/
|
paper-api/src/test/java/org/bukkit/metadata/
|
||||||
paper-api/src/test/java/org/bukkit/plugin/
|
|
||||||
paper-api/src/test/java/org/bukkit/plugin/messaging/
|
|
||||||
paper-api/src/test/java/org/bukkit/scoreboard/
|
|
||||||
paper-api/src/test/java/org/bukkit/support/
|
|
||||||
paper-api/src/test/java/org/bukkit/support/provider/
|
|
||||||
paper-api/src/test/java/org/bukkit/support/test/
|
|
||||||
paper-api/src/test/java/org/bukkit/util/
|
paper-api/src/test/java/org/bukkit/util/
|
||||||
paper-api/src/test/java/org/bukkit/util/io/
|
|
||||||
@@ -22,17 +22,17 @@ paperCheckstyle {
|
|||||||
directoriesToSkipFile = layout.projectDirectory.file(".checkstyle/ignored_directories.txt")
|
directoriesToSkipFile = layout.projectDirectory.file(".checkstyle/ignored_directories.txt")
|
||||||
}
|
}
|
||||||
|
|
||||||
val annotationsVersion = "26.0.2"
|
val annotationsVersion = "26.1.0"
|
||||||
val adventureVersion = "5.2.0"
|
val adventureVersion = "5.2.0"
|
||||||
val bungeeCordChatVersion = "1.21-R0.2-deprecated+build.21"
|
val bungeeCordChatVersion = "1.21-R0.2-deprecated+build.21"
|
||||||
val slf4jVersion = "2.0.17"
|
val slf4jVersion = "2.0.17"
|
||||||
val log4jVersion = "2.26.0"
|
val log4jVersion = "2.26.0"
|
||||||
|
|
||||||
val apiAndDocs: Configuration by configurations.creating
|
val apiAndDocs: Configuration = configurations.create("apiAndDocs")
|
||||||
configurations.api {
|
configurations.api {
|
||||||
extendsFrom(apiAndDocs)
|
extendsFrom(apiAndDocs)
|
||||||
}
|
}
|
||||||
val javadocSourcepath: Configuration by configurations.creating {
|
val javadocSourcepath: Configuration = configurations.create("javadocSourcepath") {
|
||||||
attributes {
|
attributes {
|
||||||
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.DOCUMENTATION))
|
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.DOCUMENTATION))
|
||||||
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))
|
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))
|
||||||
@@ -57,13 +57,11 @@ dependencies {
|
|||||||
api("com.google.guava:guava:33.6.0-jre")
|
api("com.google.guava:guava:33.6.0-jre")
|
||||||
api("com.google.code.gson:gson:2.14.0")
|
api("com.google.code.gson:gson:2.14.0")
|
||||||
api("org.yaml:snakeyaml:2.2")
|
api("org.yaml:snakeyaml:2.2")
|
||||||
api("org.joml:joml:1.10.8") {
|
api("org.joml:joml:1.10.9")
|
||||||
isTransitive = false // https://github.com/JOML-CI/JOML/issues/352
|
|
||||||
}
|
|
||||||
api("it.unimi.dsi:fastutil:8.5.18")
|
api("it.unimi.dsi:fastutil:8.5.18")
|
||||||
api("org.apache.logging.log4j:log4j-api:$log4jVersion")
|
api("org.apache.logging.log4j:log4j-api:$log4jVersion")
|
||||||
api("org.slf4j:slf4j-api:$slf4jVersion")
|
api("org.slf4j:slf4j-api:$slf4jVersion")
|
||||||
api("com.mojang:brigadier:1.3.10")
|
api("com.mojang:brigadier:1.3.11")
|
||||||
|
|
||||||
// Deprecate bungeecord-chat in favor of adventure
|
// Deprecate bungeecord-chat in favor of adventure
|
||||||
api("net.md-5:bungeecord-chat:$bungeeCordChatVersion") {
|
api("net.md-5:bungeecord-chat:$bungeeCordChatVersion") {
|
||||||
@@ -89,7 +87,7 @@ dependencies {
|
|||||||
testCompileOnly(annotations)
|
testCompileOnly(annotations)
|
||||||
javadocSourcepath(annotations) // For adventure-api module requirements
|
javadocSourcepath(annotations) // For adventure-api module requirements
|
||||||
|
|
||||||
val checkerQual = "org.checkerframework:checker-qual:3.49.2"
|
val checkerQual = "org.checkerframework:checker-qual:4.2.3"
|
||||||
compileOnlyApi(checkerQual)
|
compileOnlyApi(checkerQual)
|
||||||
testCompileOnly(checkerQual)
|
testCompileOnly(checkerQual)
|
||||||
|
|
||||||
@@ -185,11 +183,6 @@ val generateApiVersioningFile = tasks.register<GenerateApiVersioningFile>("gener
|
|||||||
|
|
||||||
tasks.jar {
|
tasks.jar {
|
||||||
from(generateApiVersioningFile.flatMap { it.outputFile })
|
from(generateApiVersioningFile.flatMap { it.outputFile })
|
||||||
manifest {
|
|
||||||
attributes(
|
|
||||||
"Automatic-Module-Name" to "org.bukkit"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract class Services {
|
abstract class Services {
|
||||||
@@ -207,7 +200,7 @@ tasks.withType<Javadoc>().configureEach {
|
|||||||
"https://guava.dev/releases/33.6.0-jre/api/docs/",
|
"https://guava.dev/releases/33.6.0-jre/api/docs/",
|
||||||
"https://www.javadocs.dev/org.yaml/snakeyaml/2.2/",
|
"https://www.javadocs.dev/org.yaml/snakeyaml/2.2/",
|
||||||
"https://www.javadocs.dev/org.jetbrains/annotations/$annotationsVersion/",
|
"https://www.javadocs.dev/org.jetbrains/annotations/$annotationsVersion/",
|
||||||
"https://www.javadocs.dev/org.joml/joml/1.10.8/",
|
"https://www.javadocs.dev/org.joml/joml/1.10.9/",
|
||||||
"https://www.javadocs.dev/com.google.code.gson/gson/2.14.0",
|
"https://www.javadocs.dev/com.google.code.gson/gson/2.14.0",
|
||||||
"https://jspecify.dev/docs/api/",
|
"https://jspecify.dev/docs/api/",
|
||||||
"https://jd.papermc.io/adventure/$adventureVersion/",
|
"https://jd.papermc.io/adventure/$adventureVersion/",
|
||||||
@@ -253,7 +246,7 @@ tasks.compileTestJava {
|
|||||||
options.compilerArgs.add("-parameters")
|
options.compilerArgs.add("-parameters")
|
||||||
}
|
}
|
||||||
|
|
||||||
val scanJarForBadCalls by tasks.registering(io.papermc.paperweight.tasks.ScanJarForBadCalls::class) {
|
val scanJarForBadCalls = tasks.register<io.papermc.paperweight.tasks.ScanJarForBadCalls>("scanJarForBadCalls") {
|
||||||
badAnnotations.add("Lio/papermc/paper/annotation/DoNotUse;")
|
badAnnotations.add("Lio/papermc/paper/annotation/DoNotUse;")
|
||||||
jarToScan.set(tasks.jar.flatMap { it.archiveFile })
|
jarToScan.set(tasks.jar.flatMap { it.archiveFile })
|
||||||
classpath.from(configurations.compileClasspath)
|
classpath.from(configurations.compileClasspath)
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ public interface VanillaGoal<T extends Mob> extends Goal<T> {
|
|||||||
|
|
||||||
GoalKey<Cat> CAT_AVOID_ENTITY = create("cat_avoid_entity", Cat.class);
|
GoalKey<Cat> CAT_AVOID_ENTITY = create("cat_avoid_entity", Cat.class);
|
||||||
|
|
||||||
GoalKey<Cat> CAT_LIE_ON_BED = create("cat_lie_on_bed", Cat.class);
|
GoalKey<Cat> CAT_LIE_ON_BLOCK = create("cat_lie_on_block", Cat.class);
|
||||||
|
|
||||||
GoalKey<Cat> CAT_RELAX_ON_OWNER = create("cat_relax_on_owner", Cat.class);
|
GoalKey<Cat> CAT_RELAX_ON_OWNER = create("cat_relax_on_owner", Cat.class);
|
||||||
|
|
||||||
@@ -171,7 +171,7 @@ public interface VanillaGoal<T extends Mob> extends Goal<T> {
|
|||||||
|
|
||||||
GoalKey<Creature> TEMPT = create("tempt", Creature.class);
|
GoalKey<Creature> TEMPT = create("tempt", Creature.class);
|
||||||
|
|
||||||
GoalKey<Creature> TRY_FIND_WATER = create("try_find_water", Creature.class);
|
GoalKey<Creature> TRY_FIND_LIQUID = create("try_find_liquid", Creature.class);
|
||||||
|
|
||||||
GoalKey<Creature> WATER_AVOIDING_RANDOM_FLYING = create("water_avoiding_random_flying", Creature.class);
|
GoalKey<Creature> WATER_AVOIDING_RANDOM_FLYING = create("water_avoiding_random_flying", Creature.class);
|
||||||
|
|
||||||
@@ -181,6 +181,8 @@ public interface VanillaGoal<T extends Mob> extends Goal<T> {
|
|||||||
|
|
||||||
GoalKey<Dolphin> DOLPHIN_JUMP = create("dolphin_jump", Dolphin.class);
|
GoalKey<Dolphin> DOLPHIN_JUMP = create("dolphin_jump", Dolphin.class);
|
||||||
|
|
||||||
|
GoalKey<Dolphin> DOLPHIN_MOVE_TO_ITEM = create("dolphin_move_to_item", Dolphin.class);
|
||||||
|
|
||||||
GoalKey<Dolphin> DOLPHIN_PLAY_WITH_ITEMS = create("dolphin_play_with_items", Dolphin.class);
|
GoalKey<Dolphin> DOLPHIN_PLAY_WITH_ITEMS = create("dolphin_play_with_items", Dolphin.class);
|
||||||
|
|
||||||
GoalKey<Dolphin> DOLPHIN_SWIM_TO_TREASURE = create("dolphin_swim_to_treasure", Dolphin.class);
|
GoalKey<Dolphin> DOLPHIN_SWIM_TO_TREASURE = create("dolphin_swim_to_treasure", Dolphin.class);
|
||||||
|
|||||||
@@ -81,6 +81,13 @@ public final class BiomeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<Biome> CRIMSON_FOREST = create(key("crimson_forest"));
|
public static final TypedKey<Biome> CRIMSON_FOREST = create(key("crimson_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:dappled_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Biome> DAPPLED_FOREST = create(key("dappled_forest"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:dark_forest}
|
* {@code minecraft:dark_forest}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -655,6 +655,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> BLACK_CONCRETE_POWDER = create(key("black_concrete_powder"));
|
public static final TypedKey<BlockType> BLACK_CONCRETE_POWDER = create(key("black_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:black_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BLACK_CONCRETE_SLAB = create(key("black_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:black_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BLACK_CONCRETE_STAIRS = create(key("black_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:black_glazed_terracotta}
|
* {@code minecraft:black_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -704,6 +718,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> BLACK_WOOL = create(key("black_wool"));
|
public static final TypedKey<BlockType> BLACK_WOOL = create(key("black_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:black_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BLACK_WOOL_SLAB = create(key("black_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:black_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BLACK_WOOL_STAIRS = create(key("black_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:blackstone}
|
* {@code minecraft:blackstone}
|
||||||
*
|
*
|
||||||
@@ -788,6 +816,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> BLUE_CONCRETE_POWDER = create(key("blue_concrete_powder"));
|
public static final TypedKey<BlockType> BLUE_CONCRETE_POWDER = create(key("blue_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:blue_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BLUE_CONCRETE_SLAB = create(key("blue_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:blue_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BLUE_CONCRETE_STAIRS = create(key("blue_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:blue_glazed_terracotta}
|
* {@code minecraft:blue_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -851,6 +893,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> BLUE_WOOL = create(key("blue_wool"));
|
public static final TypedKey<BlockType> BLUE_WOOL = create(key("blue_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:blue_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BLUE_WOOL_SLAB = create(key("blue_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:blue_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BLUE_WOOL_STAIRS = create(key("blue_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:bone_block}
|
* {@code minecraft:bone_block}
|
||||||
*
|
*
|
||||||
@@ -977,6 +1033,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> BROWN_CONCRETE_POWDER = create(key("brown_concrete_powder"));
|
public static final TypedKey<BlockType> BROWN_CONCRETE_POWDER = create(key("brown_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:brown_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BROWN_CONCRETE_SLAB = create(key("brown_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:brown_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BROWN_CONCRETE_STAIRS = create(key("brown_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:brown_glazed_terracotta}
|
* {@code minecraft:brown_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -1040,6 +1110,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> BROWN_WOOL = create(key("brown_wool"));
|
public static final TypedKey<BlockType> BROWN_WOOL = create(key("brown_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:brown_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BROWN_WOOL_SLAB = create(key("brown_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:brown_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> BROWN_WOOL_STAIRS = create(key("brown_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:bubble_column}
|
* {@code minecraft:bubble_column}
|
||||||
*
|
*
|
||||||
@@ -2048,6 +2132,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> CYAN_CONCRETE_POWDER = create(key("cyan_concrete_powder"));
|
public static final TypedKey<BlockType> CYAN_CONCRETE_POWDER = create(key("cyan_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:cyan_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> CYAN_CONCRETE_SLAB = create(key("cyan_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:cyan_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> CYAN_CONCRETE_STAIRS = create(key("cyan_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:cyan_glazed_terracotta}
|
* {@code minecraft:cyan_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -2097,6 +2195,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> CYAN_WOOL = create(key("cyan_wool"));
|
public static final TypedKey<BlockType> CYAN_WOOL = create(key("cyan_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:cyan_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> CYAN_WOOL_SLAB = create(key("cyan_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:cyan_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> CYAN_WOOL_STAIRS = create(key("cyan_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:damaged_anvil}
|
* {@code minecraft:damaged_anvil}
|
||||||
*
|
*
|
||||||
@@ -3105,6 +3217,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> GRAY_CONCRETE_POWDER = create(key("gray_concrete_powder"));
|
public static final TypedKey<BlockType> GRAY_CONCRETE_POWDER = create(key("gray_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:gray_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> GRAY_CONCRETE_SLAB = create(key("gray_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:gray_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> GRAY_CONCRETE_STAIRS = create(key("gray_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:gray_glazed_terracotta}
|
* {@code minecraft:gray_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -3154,6 +3280,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> GRAY_WOOL = create(key("gray_wool"));
|
public static final TypedKey<BlockType> GRAY_WOOL = create(key("gray_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:gray_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> GRAY_WOOL_SLAB = create(key("gray_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:gray_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> GRAY_WOOL_STAIRS = create(key("gray_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:green_banner}
|
* {@code minecraft:green_banner}
|
||||||
*
|
*
|
||||||
@@ -3203,6 +3343,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> GREEN_CONCRETE_POWDER = create(key("green_concrete_powder"));
|
public static final TypedKey<BlockType> GREEN_CONCRETE_POWDER = create(key("green_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:green_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> GREEN_CONCRETE_SLAB = create(key("green_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:green_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> GREEN_CONCRETE_STAIRS = create(key("green_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:green_glazed_terracotta}
|
* {@code minecraft:green_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -3252,6 +3406,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> GREEN_WOOL = create(key("green_wool"));
|
public static final TypedKey<BlockType> GREEN_WOOL = create(key("green_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:green_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> GREEN_WOOL_SLAB = create(key("green_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:green_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> GREEN_WOOL_STAIRS = create(key("green_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:grindstone}
|
* {@code minecraft:grindstone}
|
||||||
*
|
*
|
||||||
@@ -3728,6 +3896,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> LIGHT_BLUE_CONCRETE_POWDER = create(key("light_blue_concrete_powder"));
|
public static final TypedKey<BlockType> LIGHT_BLUE_CONCRETE_POWDER = create(key("light_blue_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:light_blue_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIGHT_BLUE_CONCRETE_SLAB = create(key("light_blue_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:light_blue_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIGHT_BLUE_CONCRETE_STAIRS = create(key("light_blue_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:light_blue_glazed_terracotta}
|
* {@code minecraft:light_blue_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -3777,6 +3959,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> LIGHT_BLUE_WOOL = create(key("light_blue_wool"));
|
public static final TypedKey<BlockType> LIGHT_BLUE_WOOL = create(key("light_blue_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:light_blue_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIGHT_BLUE_WOOL_SLAB = create(key("light_blue_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:light_blue_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIGHT_BLUE_WOOL_STAIRS = create(key("light_blue_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:light_gray_banner}
|
* {@code minecraft:light_gray_banner}
|
||||||
*
|
*
|
||||||
@@ -3826,6 +4022,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> LIGHT_GRAY_CONCRETE_POWDER = create(key("light_gray_concrete_powder"));
|
public static final TypedKey<BlockType> LIGHT_GRAY_CONCRETE_POWDER = create(key("light_gray_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:light_gray_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIGHT_GRAY_CONCRETE_SLAB = create(key("light_gray_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:light_gray_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIGHT_GRAY_CONCRETE_STAIRS = create(key("light_gray_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:light_gray_glazed_terracotta}
|
* {@code minecraft:light_gray_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -3875,6 +4085,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> LIGHT_GRAY_WOOL = create(key("light_gray_wool"));
|
public static final TypedKey<BlockType> LIGHT_GRAY_WOOL = create(key("light_gray_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:light_gray_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIGHT_GRAY_WOOL_SLAB = create(key("light_gray_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:light_gray_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIGHT_GRAY_WOOL_STAIRS = create(key("light_gray_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:light_weighted_pressure_plate}
|
* {@code minecraft:light_weighted_pressure_plate}
|
||||||
*
|
*
|
||||||
@@ -3959,6 +4183,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> LIME_CONCRETE_POWDER = create(key("lime_concrete_powder"));
|
public static final TypedKey<BlockType> LIME_CONCRETE_POWDER = create(key("lime_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:lime_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIME_CONCRETE_SLAB = create(key("lime_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:lime_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIME_CONCRETE_STAIRS = create(key("lime_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:lime_glazed_terracotta}
|
* {@code minecraft:lime_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -4008,6 +4246,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> LIME_WOOL = create(key("lime_wool"));
|
public static final TypedKey<BlockType> LIME_WOOL = create(key("lime_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:lime_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIME_WOOL_SLAB = create(key("lime_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:lime_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> LIME_WOOL_STAIRS = create(key("lime_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:lodestone}
|
* {@code minecraft:lodestone}
|
||||||
*
|
*
|
||||||
@@ -4071,6 +4323,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> MAGENTA_CONCRETE_POWDER = create(key("magenta_concrete_powder"));
|
public static final TypedKey<BlockType> MAGENTA_CONCRETE_POWDER = create(key("magenta_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:magenta_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> MAGENTA_CONCRETE_SLAB = create(key("magenta_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:magenta_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> MAGENTA_CONCRETE_STAIRS = create(key("magenta_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:magenta_glazed_terracotta}
|
* {@code minecraft:magenta_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -4120,6 +4386,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> MAGENTA_WOOL = create(key("magenta_wool"));
|
public static final TypedKey<BlockType> MAGENTA_WOOL = create(key("magenta_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:magenta_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> MAGENTA_WOOL_SLAB = create(key("magenta_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:magenta_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> MAGENTA_WOOL_STAIRS = create(key("magenta_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:magma_block}
|
* {@code minecraft:magma_block}
|
||||||
*
|
*
|
||||||
@@ -4715,6 +4995,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> ORANGE_CONCRETE_POWDER = create(key("orange_concrete_powder"));
|
public static final TypedKey<BlockType> ORANGE_CONCRETE_POWDER = create(key("orange_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:orange_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> ORANGE_CONCRETE_SLAB = create(key("orange_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:orange_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> ORANGE_CONCRETE_STAIRS = create(key("orange_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:orange_glazed_terracotta}
|
* {@code minecraft:orange_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -4722,6 +5016,13 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> ORANGE_GLAZED_TERRACOTTA = create(key("orange_glazed_terracotta"));
|
public static final TypedKey<BlockType> ORANGE_GLAZED_TERRACOTTA = create(key("orange_glazed_terracotta"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:orange_poplar_leaves}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> ORANGE_POPLAR_LEAVES = create(key("orange_poplar_leaves"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:orange_shulker_box}
|
* {@code minecraft:orange_shulker_box}
|
||||||
*
|
*
|
||||||
@@ -4771,6 +5072,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> ORANGE_WOOL = create(key("orange_wool"));
|
public static final TypedKey<BlockType> ORANGE_WOOL = create(key("orange_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:orange_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> ORANGE_WOOL_SLAB = create(key("orange_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:orange_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> ORANGE_WOOL_STAIRS = create(key("orange_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:oxeye_daisy}
|
* {@code minecraft:oxeye_daisy}
|
||||||
*
|
*
|
||||||
@@ -5128,6 +5443,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> PINK_CONCRETE_POWDER = create(key("pink_concrete_powder"));
|
public static final TypedKey<BlockType> PINK_CONCRETE_POWDER = create(key("pink_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:pink_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> PINK_CONCRETE_SLAB = create(key("pink_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:pink_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> PINK_CONCRETE_STAIRS = create(key("pink_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:pink_glazed_terracotta}
|
* {@code minecraft:pink_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -5191,6 +5520,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> PINK_WOOL = create(key("pink_wool"));
|
public static final TypedKey<BlockType> PINK_WOOL = create(key("pink_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:pink_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> PINK_WOOL_SLAB = create(key("pink_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:pink_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> PINK_WOOL_STAIRS = create(key("pink_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:piston}
|
* {@code minecraft:piston}
|
||||||
*
|
*
|
||||||
@@ -5499,6 +5842,125 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> POLISHED_TUFF_WALL = create(key("polished_tuff_wall"));
|
public static final TypedKey<BlockType> POLISHED_TUFF_WALL = create(key("polished_tuff_wall"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_button}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_BUTTON = create(key("poplar_button"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_door}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_DOOR = create(key("poplar_door"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_fence}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_FENCE = create(key("poplar_fence"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_fence_gate}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_FENCE_GATE = create(key("poplar_fence_gate"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_hanging_sign}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_HANGING_SIGN = create(key("poplar_hanging_sign"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_log}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_LOG = create(key("poplar_log"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_planks}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_PLANKS = create(key("poplar_planks"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_pressure_plate}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_PRESSURE_PLATE = create(key("poplar_pressure_plate"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_sapling}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_SAPLING = create(key("poplar_sapling"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_shelf}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_SHELF = create(key("poplar_shelf"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_sign}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_SIGN = create(key("poplar_sign"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_SLAB = create(key("poplar_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_STAIRS = create(key("poplar_stairs"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_trapdoor}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_TRAPDOOR = create(key("poplar_trapdoor"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_wall_hanging_sign}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_WALL_HANGING_SIGN = create(key("poplar_wall_hanging_sign"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_wall_sign}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_WALL_SIGN = create(key("poplar_wall_sign"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:poplar_wood}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POPLAR_WOOD = create(key("poplar_wood"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:poppy}
|
* {@code minecraft:poppy}
|
||||||
*
|
*
|
||||||
@@ -5723,6 +6185,13 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> POTTED_PINK_TULIP = create(key("potted_pink_tulip"));
|
public static final TypedKey<BlockType> POTTED_PINK_TULIP = create(key("potted_pink_tulip"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:potted_poplar_sapling}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> POTTED_POPLAR_SAPLING = create(key("potted_poplar_sapling"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:potted_poppy}
|
* {@code minecraft:potted_poppy}
|
||||||
*
|
*
|
||||||
@@ -5919,6 +6388,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> PURPLE_CONCRETE_POWDER = create(key("purple_concrete_powder"));
|
public static final TypedKey<BlockType> PURPLE_CONCRETE_POWDER = create(key("purple_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:purple_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> PURPLE_CONCRETE_SLAB = create(key("purple_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:purple_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> PURPLE_CONCRETE_STAIRS = create(key("purple_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:purple_glazed_terracotta}
|
* {@code minecraft:purple_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -5968,6 +6451,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> PURPLE_WOOL = create(key("purple_wool"));
|
public static final TypedKey<BlockType> PURPLE_WOOL = create(key("purple_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:purple_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> PURPLE_WOOL_SLAB = create(key("purple_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:purple_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> PURPLE_WOOL_STAIRS = create(key("purple_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:purpur_block}
|
* {@code minecraft:purpur_block}
|
||||||
*
|
*
|
||||||
@@ -6108,6 +6605,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> RED_CONCRETE_POWDER = create(key("red_concrete_powder"));
|
public static final TypedKey<BlockType> RED_CONCRETE_POWDER = create(key("red_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:red_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> RED_CONCRETE_SLAB = create(key("red_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:red_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> RED_CONCRETE_STAIRS = create(key("red_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:red_glazed_terracotta}
|
* {@code minecraft:red_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -6157,6 +6668,13 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> RED_NETHER_BRICKS = create(key("red_nether_bricks"));
|
public static final TypedKey<BlockType> RED_NETHER_BRICKS = create(key("red_nether_bricks"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:red_poplar_leaves}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> RED_POPLAR_LEAVES = create(key("red_poplar_leaves"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:red_sand}
|
* {@code minecraft:red_sand}
|
||||||
*
|
*
|
||||||
@@ -6192,6 +6710,13 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> RED_SANDSTONE_WALL = create(key("red_sandstone_wall"));
|
public static final TypedKey<BlockType> RED_SANDSTONE_WALL = create(key("red_sandstone_wall"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:red_shrub}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> RED_SHRUB = create(key("red_shrub"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:red_shulker_box}
|
* {@code minecraft:red_shulker_box}
|
||||||
*
|
*
|
||||||
@@ -6241,6 +6766,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> RED_WOOL = create(key("red_wool"));
|
public static final TypedKey<BlockType> RED_WOOL = create(key("red_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:red_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> RED_WOOL_SLAB = create(key("red_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:red_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> RED_WOOL_STAIRS = create(key("red_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:redstone_block}
|
* {@code minecraft:redstone_block}
|
||||||
*
|
*
|
||||||
@@ -6465,6 +7004,13 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> SEAGRASS = create(key("seagrass"));
|
public static final TypedKey<BlockType> SEAGRASS = create(key("seagrass"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:shelf_mushroom}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> SHELF_MUSHROOM = create(key("shelf_mushroom"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:short_dry_grass}
|
* {@code minecraft:short_dry_grass}
|
||||||
*
|
*
|
||||||
@@ -6920,6 +7466,13 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> STONECUTTER = create(key("stonecutter"));
|
public static final TypedKey<BlockType> STONECUTTER = create(key("stonecutter"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:straw_bed}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> STRAW_BED = create(key("straw_bed"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:stripped_acacia_log}
|
* {@code minecraft:stripped_acacia_log}
|
||||||
*
|
*
|
||||||
@@ -7053,6 +7606,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> STRIPPED_PALE_OAK_WOOD = create(key("stripped_pale_oak_wood"));
|
public static final TypedKey<BlockType> STRIPPED_PALE_OAK_WOOD = create(key("stripped_pale_oak_wood"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:stripped_poplar_log}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> STRIPPED_POPLAR_LOG = create(key("stripped_poplar_log"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:stripped_poplar_wood}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> STRIPPED_POPLAR_WOOD = create(key("stripped_poplar_wood"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:stripped_spruce_log}
|
* {@code minecraft:stripped_spruce_log}
|
||||||
*
|
*
|
||||||
@@ -8201,6 +8768,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> WHITE_CONCRETE_POWDER = create(key("white_concrete_powder"));
|
public static final TypedKey<BlockType> WHITE_CONCRETE_POWDER = create(key("white_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:white_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> WHITE_CONCRETE_SLAB = create(key("white_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:white_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> WHITE_CONCRETE_STAIRS = create(key("white_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:white_glazed_terracotta}
|
* {@code minecraft:white_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -8257,6 +8838,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> WHITE_WOOL = create(key("white_wool"));
|
public static final TypedKey<BlockType> WHITE_WOOL = create(key("white_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:white_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> WHITE_WOOL_SLAB = create(key("white_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:white_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> WHITE_WOOL_STAIRS = create(key("white_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:wildflowers}
|
* {@code minecraft:wildflowers}
|
||||||
*
|
*
|
||||||
@@ -8334,6 +8929,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> YELLOW_CONCRETE_POWDER = create(key("yellow_concrete_powder"));
|
public static final TypedKey<BlockType> YELLOW_CONCRETE_POWDER = create(key("yellow_concrete_powder"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:yellow_concrete_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> YELLOW_CONCRETE_SLAB = create(key("yellow_concrete_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:yellow_concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> YELLOW_CONCRETE_STAIRS = create(key("yellow_concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:yellow_glazed_terracotta}
|
* {@code minecraft:yellow_glazed_terracotta}
|
||||||
*
|
*
|
||||||
@@ -8341,6 +8950,13 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> YELLOW_GLAZED_TERRACOTTA = create(key("yellow_glazed_terracotta"));
|
public static final TypedKey<BlockType> YELLOW_GLAZED_TERRACOTTA = create(key("yellow_glazed_terracotta"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:yellow_poplar_leaves}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> YELLOW_POPLAR_LEAVES = create(key("yellow_poplar_leaves"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:yellow_shulker_box}
|
* {@code minecraft:yellow_shulker_box}
|
||||||
*
|
*
|
||||||
@@ -8383,6 +8999,20 @@ public final class BlockTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<BlockType> YELLOW_WOOL = create(key("yellow_wool"));
|
public static final TypedKey<BlockType> YELLOW_WOOL = create(key("yellow_wool"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:yellow_wool_slab}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> YELLOW_WOOL_SLAB = create(key("yellow_wool_slab"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:yellow_wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<BlockType> YELLOW_WOOL_STAIRS = create(key("yellow_wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:zombie_head}
|
* {@code minecraft:zombie_head}
|
||||||
*
|
*
|
||||||
|
|||||||
+91
-14
@@ -32,6 +32,13 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> ADDITIONAL_TRADE_COST = create(key("additional_trade_cost"));
|
public static final TypedKey<DataComponentType> ADDITIONAL_TRADE_COST = create(key("additional_trade_cost"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:attack_animation}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> ATTACK_ANIMATION = create(key("attack_animation"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:attack_range}
|
* {@code minecraft:attack_range}
|
||||||
*
|
*
|
||||||
@@ -88,6 +95,13 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> BLOCK_STATE = create(key("block_state"));
|
public static final TypedKey<DataComponentType> BLOCK_STATE = create(key("block_state"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block_transformer}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> BLOCK_TRANSFORMER = create(key("block_transformer"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:blocks_attacks}
|
* {@code minecraft:blocks_attacks}
|
||||||
*
|
*
|
||||||
@@ -102,6 +116,13 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> BREAK_SOUND = create(key("break_sound"));
|
public static final TypedKey<DataComponentType> BREAK_SOUND = create(key("break_sound"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:brewing_fuel}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> BREWING_FUEL = create(key("brewing_fuel"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:bucket_entity_data}
|
* {@code minecraft:bucket_entity_data}
|
||||||
*
|
*
|
||||||
@@ -172,6 +193,13 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> CHICKEN_VARIANT = create(key("chicken/variant"));
|
public static final TypedKey<DataComponentType> CHICKEN_VARIANT = create(key("chicken/variant"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:compostable}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> COMPOSTABLE = create(key("compostable"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:consumable}
|
* {@code minecraft:consumable}
|
||||||
*
|
*
|
||||||
@@ -193,6 +221,13 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> CONTAINER_LOOT = create(key("container_loot"));
|
public static final TypedKey<DataComponentType> CONTAINER_LOOT = create(key("container_loot"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:cooking_fuel}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> COOKING_FUEL = create(key("cooking_fuel"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:cow/sound_variant}
|
* {@code minecraft:cow/sound_variant}
|
||||||
*
|
*
|
||||||
@@ -214,6 +249,13 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> CREATIVE_SLOT_LOCK = create(key("creative_slot_lock"));
|
public static final TypedKey<DataComponentType> CREATIVE_SLOT_LOCK = create(key("creative_slot_lock"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:cushion/color}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> CUSHION_COLOR = create(key("cushion/color"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:custom_data}
|
* {@code minecraft:custom_data}
|
||||||
*
|
*
|
||||||
@@ -382,6 +424,13 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> INTANGIBLE_PROJECTILE = create(key("intangible_projectile"));
|
public static final TypedKey<DataComponentType> INTANGIBLE_PROJECTILE = create(key("intangible_projectile"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:interact_animation}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> INTERACT_ANIMATION = create(key("interact_animation"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:item_model}
|
* {@code minecraft:item_model}
|
||||||
*
|
*
|
||||||
@@ -438,13 +487,6 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> LORE = create(key("lore"));
|
public static final TypedKey<DataComponentType> LORE = create(key("lore"));
|
||||||
|
|
||||||
/**
|
|
||||||
* {@code minecraft:map_color}
|
|
||||||
*
|
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
|
||||||
*/
|
|
||||||
public static final TypedKey<DataComponentType> MAP_COLOR = create(key("map_color"));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:map_decorations}
|
* {@code minecraft:map_decorations}
|
||||||
*
|
*
|
||||||
@@ -487,6 +529,13 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> MINIMUM_ATTACK_CHARGE = create(key("minimum_attack_charge"));
|
public static final TypedKey<DataComponentType> MINIMUM_ATTACK_CHARGE = create(key("minimum_attack_charge"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:mob_visibility}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> MOB_VISIBILITY = create(key("mob_visibility"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:mooshroom/variant}
|
* {@code minecraft:mooshroom/variant}
|
||||||
*
|
*
|
||||||
@@ -578,6 +627,13 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> PROVIDES_BANNER_PATTERNS = create(key("provides_banner_patterns"));
|
public static final TypedKey<DataComponentType> PROVIDES_BANNER_PATTERNS = create(key("provides_banner_patterns"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:provides_pottery_pattern}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> PROVIDES_POTTERY_PATTERN = create(key("provides_pottery_pattern"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:provides_trim_material}
|
* {@code minecraft:provides_trim_material}
|
||||||
*
|
*
|
||||||
@@ -641,6 +697,20 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> SHULKER_COLOR = create(key("shulker/color"));
|
public static final TypedKey<DataComponentType> SHULKER_COLOR = create(key("shulker/color"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:sign_text_back}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> SIGN_TEXT_BACK = create(key("sign_text_back"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:sign_text_front}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> SIGN_TEXT_FRONT = create(key("sign_text_front"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:stored_enchantments}
|
* {@code minecraft:stored_enchantments}
|
||||||
*
|
*
|
||||||
@@ -662,13 +732,6 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> SUSPICIOUS_STEW_EFFECTS = create(key("suspicious_stew_effects"));
|
public static final TypedKey<DataComponentType> SUSPICIOUS_STEW_EFFECTS = create(key("suspicious_stew_effects"));
|
||||||
|
|
||||||
/**
|
|
||||||
* {@code minecraft:swing_animation}
|
|
||||||
*
|
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
|
||||||
*/
|
|
||||||
public static final TypedKey<DataComponentType> SWING_ANIMATION = create(key("swing_animation"));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:tool}
|
* {@code minecraft:tool}
|
||||||
*
|
*
|
||||||
@@ -753,6 +816,20 @@ public final class DataComponentTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<DataComponentType> VILLAGER_VARIANT = create(key("villager/variant"));
|
public static final TypedKey<DataComponentType> VILLAGER_VARIANT = create(key("villager/variant"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:villager_food}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> VILLAGER_FOOD = create(key("villager_food"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:waxed}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<DataComponentType> WAXED = create(key("waxed"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:weapon}
|
* {@code minecraft:weapon}
|
||||||
*
|
*
|
||||||
|
|||||||
+201
@@ -0,0 +1,201 @@
|
|||||||
|
package io.papermc.paper.registry.keys;
|
||||||
|
|
||||||
|
import static net.kyori.adventure.key.Key.key;
|
||||||
|
|
||||||
|
import io.papermc.paper.annotation.GeneratedClass;
|
||||||
|
import io.papermc.paper.block.pot.PotPatternType;
|
||||||
|
import io.papermc.paper.registry.RegistryKey;
|
||||||
|
import io.papermc.paper.registry.TypedKey;
|
||||||
|
import net.kyori.adventure.key.Key;
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vanilla keys for {@link RegistryKey#DECORATED_POT_PATTERN}.
|
||||||
|
*
|
||||||
|
* @apiNote The fields provided here are a direct representation of
|
||||||
|
* what is available from the vanilla game source. They may be
|
||||||
|
* changed (including removals) on any Minecraft version
|
||||||
|
* bump, so cross-version compatibility is not provided on the
|
||||||
|
* same level as it is on most of the other API.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings({
|
||||||
|
"unused",
|
||||||
|
"SpellCheckingInspection"
|
||||||
|
})
|
||||||
|
@NullMarked
|
||||||
|
@GeneratedClass
|
||||||
|
public final class DecoratedPotPatternKeys {
|
||||||
|
/**
|
||||||
|
* {@code minecraft:angler}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> ANGLER = create(key("angler"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:archer}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> ARCHER = create(key("archer"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:arms_up}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> ARMS_UP = create(key("arms_up"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:blade}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> BLADE = create(key("blade"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:brewer}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> BREWER = create(key("brewer"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:burn}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> BURN = create(key("burn"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:danger}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> DANGER = create(key("danger"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:explorer}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> EXPLORER = create(key("explorer"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:flow}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> FLOW = create(key("flow"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:friend}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> FRIEND = create(key("friend"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:guster}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> GUSTER = create(key("guster"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:heart}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> HEART = create(key("heart"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:heartbreak}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> HEARTBREAK = create(key("heartbreak"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:howl}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> HOWL = create(key("howl"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:miner}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> MINER = create(key("miner"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:mourner}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> MOURNER = create(key("mourner"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:plenty}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> PLENTY = create(key("plenty"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:prize}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> PRIZE = create(key("prize"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:scrape}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> SCRAPE = create(key("scrape"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:sheaf}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> SHEAF = create(key("sheaf"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:shelter}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> SHELTER = create(key("shelter"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:skull}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> SKULL = create(key("skull"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:snort}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<PotPatternType> SNORT = create(key("snort"));
|
||||||
|
|
||||||
|
private DecoratedPotPatternKeys() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a typed key for {@link PotPatternType} in the registry {@code minecraft:decorated_pot_pattern}.
|
||||||
|
*
|
||||||
|
* @param key the value's key in the registry
|
||||||
|
* @return a new typed key
|
||||||
|
*/
|
||||||
|
public static TypedKey<PotPatternType> create(final Key key) {
|
||||||
|
return TypedKey.create(RegistryKey.DECORATED_POT_PATTERN, key);
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large.
Load diff
+35
@@ -25,6 +25,20 @@ import org.jspecify.annotations.NullMarked;
|
|||||||
@NullMarked
|
@NullMarked
|
||||||
@GeneratedClass
|
@GeneratedClass
|
||||||
public final class MapDecorationTypeKeys {
|
public final class MapDecorationTypeKeys {
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<MapCursor.Type> ABANDONED_CAMP = create(key("abandoned_camp"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:ancient_city}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<MapCursor.Type> ANCIENT_CITY = create(key("ancient_city"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:banner_black}
|
* {@code minecraft:banner_black}
|
||||||
*
|
*
|
||||||
@@ -144,6 +158,13 @@ public final class MapDecorationTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<MapCursor.Type> BLUE_MARKER = create(key("blue_marker"));
|
public static final TypedKey<MapCursor.Type> BLUE_MARKER = create(key("blue_marker"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:desert_pyramid}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<MapCursor.Type> DESERT_PYRAMID = create(key("desert_pyramid"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:frame}
|
* {@code minecraft:frame}
|
||||||
*
|
*
|
||||||
@@ -165,6 +186,13 @@ public final class MapDecorationTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<MapCursor.Type> MANSION = create(key("mansion"));
|
public static final TypedKey<MapCursor.Type> MANSION = create(key("mansion"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:mineshaft}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<MapCursor.Type> MINESHAFT = create(key("mineshaft"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:monument}
|
* {@code minecraft:monument}
|
||||||
*
|
*
|
||||||
@@ -172,6 +200,13 @@ public final class MapDecorationTypeKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<MapCursor.Type> MONUMENT = create(key("monument"));
|
public static final TypedKey<MapCursor.Type> MONUMENT = create(key("monument"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:ocean_ruin_warm}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<MapCursor.Type> OCEAN_RUIN_WARM = create(key("ocean_ruin_warm"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:player}
|
* {@code minecraft:player}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -4043,6 +4043,48 @@ public final class SoundEventKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<Sound> BLOCK_POLISHED_TUFF_STEP = create(key("block.polished_tuff.step"));
|
public static final TypedKey<Sound> BLOCK_POLISHED_TUFF_STEP = create(key("block.polished_tuff.step"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.poplar_leaves.ambient}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_POPLAR_LEAVES_AMBIENT = create(key("block.poplar_leaves.ambient"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.poplar_leaves.break}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_POPLAR_LEAVES_BREAK = create(key("block.poplar_leaves.break"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.poplar_leaves.fall}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_POPLAR_LEAVES_FALL = create(key("block.poplar_leaves.fall"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.poplar_leaves.hit}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_POPLAR_LEAVES_HIT = create(key("block.poplar_leaves.hit"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.poplar_leaves.place}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_POPLAR_LEAVES_PLACE = create(key("block.poplar_leaves.place"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.poplar_leaves.step}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_POPLAR_LEAVES_STEP = create(key("block.poplar_leaves.step"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:block.portal.ambient}
|
* {@code minecraft:block.portal.ambient}
|
||||||
*
|
*
|
||||||
@@ -4176,6 +4218,20 @@ public final class SoundEventKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<Sound> BLOCK_PUMPKIN_CARVE = create(key("block.pumpkin.carve"));
|
public static final TypedKey<Sound> BLOCK_PUMPKIN_CARVE = create(key("block.pumpkin.carve"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.red_shrub.break}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_RED_SHRUB_BREAK = create(key("block.red_shrub.break"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.red_shrub.place}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_RED_SHRUB_PLACE = create(key("block.red_shrub.place"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:block.redstone_torch.burnout}
|
* {@code minecraft:block.redstone_torch.burnout}
|
||||||
*
|
*
|
||||||
@@ -4715,6 +4771,41 @@ public final class SoundEventKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<Sound> BLOCK_SHELF_TAKE_ITEM = create(key("block.shelf.take_item"));
|
public static final TypedKey<Sound> BLOCK_SHELF_TAKE_ITEM = create(key("block.shelf.take_item"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.shelf_mushroom.bounce}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_SHELF_MUSHROOM_BOUNCE = create(key("block.shelf_mushroom.bounce"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.shelf_mushroom.break}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_SHELF_MUSHROOM_BREAK = create(key("block.shelf_mushroom.break"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.shelf_mushroom.fall}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_SHELF_MUSHROOM_FALL = create(key("block.shelf_mushroom.fall"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.shelf_mushroom.place}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_SHELF_MUSHROOM_PLACE = create(key("block.shelf_mushroom.place"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.shelf_mushroom.step}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_SHELF_MUSHROOM_STEP = create(key("block.shelf_mushroom.step"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:block.shroomlight.break}
|
* {@code minecraft:block.shroomlight.break}
|
||||||
*
|
*
|
||||||
@@ -5205,6 +5296,48 @@ public final class SoundEventKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<Sound> BLOCK_STONE_PRESSURE_PLATE_CLICK_ON = create(key("block.stone_pressure_plate.click_on"));
|
public static final TypedKey<Sound> BLOCK_STONE_PRESSURE_PLATE_CLICK_ON = create(key("block.stone_pressure_plate.click_on"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.straw_bed.break}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_STRAW_BED_BREAK = create(key("block.straw_bed.break"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.straw_bed.break_leave}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_STRAW_BED_BREAK_LEAVE = create(key("block.straw_bed.break_leave"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.straw_bed.fall}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_STRAW_BED_FALL = create(key("block.straw_bed.fall"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.straw_bed.hit}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_STRAW_BED_HIT = create(key("block.straw_bed.hit"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.straw_bed.place}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_STRAW_BED_PLACE = create(key("block.straw_bed.place"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:block.straw_bed.step}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> BLOCK_STRAW_BED_STEP = create(key("block.straw_bed.step"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:block.sulfur.break}
|
* {@code minecraft:block.sulfur.break}
|
||||||
*
|
*
|
||||||
@@ -7438,6 +7571,34 @@ public final class SoundEventKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TypedKey<Sound> ENTITY_CREEPER_PRIMED = create(key("entity.creeper.primed"));
|
public static final TypedKey<Sound> ENTITY_CREEPER_PRIMED = create(key("entity.creeper.primed"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:entity.cushion.break}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> ENTITY_CUSHION_BREAK = create(key("entity.cushion.break"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:entity.cushion.get_up}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> ENTITY_CUSHION_GET_UP = create(key("entity.cushion.get_up"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:entity.cushion.place}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> ENTITY_CUSHION_PLACE = create(key("entity.cushion.place"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:entity.cushion.sit}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Sound> ENTITY_CUSHION_SIT = create(key("entity.cushion.sit"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:entity.dolphin.ambient}
|
* {@code minecraft:entity.dolphin.ambient}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -25,6 +25,132 @@ import org.jspecify.annotations.NullMarked;
|
|||||||
@NullMarked
|
@NullMarked
|
||||||
@GeneratedClass
|
@GeneratedClass
|
||||||
public final class StructureKeys {
|
public final class StructureKeys {
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_bamboo_jungle}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_BAMBOO_JUNGLE = create(key("abandoned_camp_bamboo_jungle"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_birch_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_BIRCH_FOREST = create(key("abandoned_camp_birch_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_cherry_grove}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_CHERRY_GROVE = create(key("abandoned_camp_cherry_grove"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_dappled_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_DAPPLED_FOREST = create(key("abandoned_camp_dappled_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_flower_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_FLOWER_FOREST = create(key("abandoned_camp_flower_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_FOREST = create(key("abandoned_camp_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_meadow}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_MEADOW = create(key("abandoned_camp_meadow"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_old_growth_birch_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_OLD_GROWTH_BIRCH_FOREST = create(key("abandoned_camp_old_growth_birch_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_old_growth_pine_taiga}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_OLD_GROWTH_PINE_TAIGA = create(key("abandoned_camp_old_growth_pine_taiga"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_old_growth_spruce_taiga}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_OLD_GROWTH_SPRUCE_TAIGA = create(key("abandoned_camp_old_growth_spruce_taiga"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_pale_garden}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_PALE_GARDEN = create(key("abandoned_camp_pale_garden"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_savanna}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_SAVANNA = create(key("abandoned_camp_savanna"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_snowy_taiga}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_SNOWY_TAIGA = create(key("abandoned_camp_snowy_taiga"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_sparse_jungle}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_SPARSE_JUNGLE = create(key("abandoned_camp_sparse_jungle"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_swamp}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_SWAMP = create(key("abandoned_camp_swamp"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_taiga}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_TAIGA = create(key("abandoned_camp_taiga"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_windswept_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_WINDSWEPT_FOREST = create(key("abandoned_camp_windswept_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code minecraft:abandoned_camp_wooded_badlands}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TypedKey<Structure> ABANDONED_CAMP_WOODED_BADLANDS = create(key("abandoned_camp_wooded_badlands"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code minecraft:ancient_city}
|
* {@code minecraft:ancient_city}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -39,6 +39,132 @@ public final class BiomeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<Biome> ALLOWS_TROPICAL_FISH_SPAWNS_AT_ANY_HEIGHT = create(key("allows_tropical_fish_spawns_at_any_height"));
|
public static final TagKey<Biome> ALLOWS_TROPICAL_FISH_SPAWNS_AT_ANY_HEIGHT = create(key("allows_tropical_fish_spawns_at_any_height"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_bamboo_jungle}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_BAMBOO_JUNGLE = create(key("has_structure/abandoned_camp_bamboo_jungle"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_birch_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_BIRCH_FOREST = create(key("has_structure/abandoned_camp_birch_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_cherry_grove}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_CHERRY_GROVE = create(key("has_structure/abandoned_camp_cherry_grove"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_dappled_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_DAPPLED_FOREST = create(key("has_structure/abandoned_camp_dappled_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_flower_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_FLOWER_FOREST = create(key("has_structure/abandoned_camp_flower_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_FOREST = create(key("has_structure/abandoned_camp_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_meadow}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_MEADOW = create(key("has_structure/abandoned_camp_meadow"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_old_growth_birch_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_OLD_GROWTH_BIRCH_FOREST = create(key("has_structure/abandoned_camp_old_growth_birch_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_old_growth_pine_taiga}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_OLD_GROWTH_PINE_TAIGA = create(key("has_structure/abandoned_camp_old_growth_pine_taiga"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_old_growth_spruce_taiga}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_OLD_GROWTH_SPRUCE_TAIGA = create(key("has_structure/abandoned_camp_old_growth_spruce_taiga"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_pale_garden}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_PALE_GARDEN = create(key("has_structure/abandoned_camp_pale_garden"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_savanna}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_SAVANNA = create(key("has_structure/abandoned_camp_savanna"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_snowy_taiga}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_SNOWY_TAIGA = create(key("has_structure/abandoned_camp_snowy_taiga"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_sparse_jungle}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_SPARSE_JUNGLE = create(key("has_structure/abandoned_camp_sparse_jungle"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_swamp}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_SWAMP = create(key("has_structure/abandoned_camp_swamp"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_taiga}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_TAIGA = create(key("has_structure/abandoned_camp_taiga"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_windswept_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_WINDSWEPT_FOREST = create(key("has_structure/abandoned_camp_windswept_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:has_structure/abandoned_camp_wooded_badlands}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Biome> HAS_STRUCTURE_ABANDONED_CAMP_WOODED_BADLANDS = create(key("has_structure/abandoned_camp_wooded_badlands"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:has_structure/ancient_city}
|
* {@code #minecraft:has_structure/ancient_city}
|
||||||
*
|
*
|
||||||
|
|||||||
+256
-11
@@ -207,6 +207,55 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> BIRCH_LOGS = create(key("birch_logs"));
|
public static final TagKey<BlockType> BIRCH_LOGS = create(key("birch_logs"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:blocks_dolphin_jump}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> BLOCKS_DOLPHIN_JUMP = create(key("blocks_dolphin_jump"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:blocks_fluid_flow}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> BLOCKS_FLUID_FLOW = create(key("blocks_fluid_flow"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:blocks_lava_fire_spread}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> BLOCKS_LAVA_FIRE_SPREAD = create(key("blocks_lava_fire_spread"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:blocks_motion}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> BLOCKS_MOTION = create(key("blocks_motion"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:blocks_motion_in_heightmap}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> BLOCKS_MOTION_IN_HEIGHTMAP = create(key("blocks_motion_in_heightmap"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:blocks_motion_in_heightmap_no_leaves}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> BLOCKS_MOTION_IN_HEIGHTMAP_NO_LEAVES = create(key("blocks_motion_in_heightmap_no_leaves"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:blocks_motion_no_leaves}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> BLOCKS_MOTION_NO_LEAVES = create(key("blocks_motion_no_leaves"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:blocks_wind_charge_explosions}
|
* {@code #minecraft:blocks_wind_charge_explosions}
|
||||||
*
|
*
|
||||||
@@ -263,6 +312,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> CANDLES = create(key("candles"));
|
public static final TagKey<BlockType> CANDLES = create(key("candles"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:cannot_place_basalt_pillar_on}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> CANNOT_PLACE_BASALT_PILLAR_ON = create(key("cannot_place_basalt_pillar_on"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:cannot_replace_below_tree_trunk}
|
* {@code #minecraft:cannot_replace_below_tree_trunk}
|
||||||
*
|
*
|
||||||
@@ -291,6 +347,27 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> CANNOT_SUPPORT_SNOW_LAYER = create(key("cannot_support_snow_layer"));
|
public static final TagKey<BlockType> CANNOT_SUPPORT_SNOW_LAYER = create(key("cannot_support_snow_layer"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:cat_does_not_teleport_to}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> CAT_DOES_NOT_TELEPORT_TO = create(key("cat_does_not_teleport_to"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:cats_can_lie_on}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> CATS_CAN_LIE_ON = create(key("cats_can_lie_on"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:cats_can_sit_on}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> CATS_CAN_SIT_ON = create(key("cats_can_sit_on"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:cauldrons}
|
* {@code #minecraft:cauldrons}
|
||||||
*
|
*
|
||||||
@@ -312,6 +389,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> CAUSES_PERIODIC_GEYSER_ERUPTIONS = create(key("causes_periodic_geyser_eruptions"));
|
public static final TagKey<BlockType> CAUSES_PERIODIC_GEYSER_ERUPTIONS = create(key("causes_periodic_geyser_eruptions"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:causes_suffocation}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> CAUSES_SUFFOCATION = create(key("causes_suffocation"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:cave_vines}
|
* {@code #minecraft:cave_vines}
|
||||||
*
|
*
|
||||||
@@ -383,11 +467,32 @@ public final class BlockTypeTagKeys {
|
|||||||
public static final TagKey<BlockType> CONCRETE_POWDERS = create(key("concrete_powders"));
|
public static final TagKey<BlockType> CONCRETE_POWDERS = create(key("concrete_powders"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:convertable_to_mud}
|
* {@code #minecraft:concrete_slabs}
|
||||||
*
|
*
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> CONVERTABLE_TO_MUD = create(key("convertable_to_mud"));
|
public static final TagKey<BlockType> CONCRETE_SLABS = create(key("concrete_slabs"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> CONCRETE_STAIRS = create(key("concrete_stairs"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:conduit_effect_block}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> CONDUIT_EFFECT_BLOCK = create(key("conduit_effect_block"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:convertible_to_mud}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> CONVERTIBLE_TO_MUD = create(key("convertible_to_mud"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:copper}
|
* {@code #minecraft:copper}
|
||||||
@@ -459,6 +564,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> CRYSTAL_SOUND_BLOCKS = create(key("crystal_sound_blocks"));
|
public static final TagKey<BlockType> CRYSTAL_SOUND_BLOCKS = create(key("crystal_sound_blocks"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:cushion_uses_collision_shape}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> CUSHION_USES_COLLISION_SHAPE = create(key("cushion_uses_collision_shape"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:dampens_vibrations}
|
* {@code #minecraft:dampens_vibrations}
|
||||||
*
|
*
|
||||||
@@ -466,6 +578,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> DAMPENS_VIBRATIONS = create(key("dampens_vibrations"));
|
public static final TagKey<BlockType> DAMPENS_VIBRATIONS = create(key("dampens_vibrations"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:dangerous_for_teleportation}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> DANGEROUS_FOR_TELEPORTATION = create(key("dangerous_for_teleportation"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:dark_oak_logs}
|
* {@code #minecraft:dark_oak_logs}
|
||||||
*
|
*
|
||||||
@@ -578,6 +697,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> ENCHANTMENT_POWER_TRANSMITTER = create(key("enchantment_power_transmitter"));
|
public static final TagKey<BlockType> ENCHANTMENT_POWER_TRANSMITTER = create(key("enchantment_power_transmitter"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:enderman_does_not_teleport_to}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> ENDERMAN_DOES_NOT_TELEPORT_TO = create(key("enderman_does_not_teleport_to"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:enderman_holdable}
|
* {@code #minecraft:enderman_holdable}
|
||||||
*
|
*
|
||||||
@@ -585,6 +711,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> ENDERMAN_HOLDABLE = create(key("enderman_holdable"));
|
public static final TagKey<BlockType> ENDERMAN_HOLDABLE = create(key("enderman_holdable"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:entities_can_teleport_to}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> ENTITIES_CAN_TELEPORT_TO = create(key("entities_can_teleport_to"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:fall_damage_resetting}
|
* {@code #minecraft:fall_damage_resetting}
|
||||||
*
|
*
|
||||||
@@ -725,6 +858,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> HAPPY_GHAST_AVOIDS = create(key("happy_ghast_avoids"));
|
public static final TagKey<BlockType> HAPPY_GHAST_AVOIDS = create(key("happy_ghast_avoids"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:height_specific_ore_replaceables}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> HEIGHT_SPECIFIC_ORE_REPLACEABLES = create(key("height_specific_ore_replaceables"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:hoglin_repellents}
|
* {@code #minecraft:hoglin_repellents}
|
||||||
*
|
*
|
||||||
@@ -753,6 +893,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> ICE = create(key("ice"));
|
public static final TagKey<BlockType> ICE = create(key("ice"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:ice_melts_when_destroyed_above}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> ICE_MELTS_WHEN_DESTROYED_ABOVE = create(key("ice_melts_when_destroyed_above"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:ice_spike_replaceable}
|
* {@code #minecraft:ice_spike_replaceable}
|
||||||
*
|
*
|
||||||
@@ -1034,11 +1181,11 @@ public final class BlockTypeTagKeys {
|
|||||||
public static final TagKey<BlockType> NEEDS_STONE_TOOL = create(key("needs_stone_tool"));
|
public static final TagKey<BlockType> NEEDS_STONE_TOOL = create(key("needs_stone_tool"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:nether_carver_replaceables}
|
* {@code #minecraft:nether_portal_frame}
|
||||||
*
|
*
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> NETHER_CARVER_REPLACEABLES = create(key("nether_carver_replaceables"));
|
public static final TagKey<BlockType> NETHER_PORTAL_FRAME = create(key("nether_portal_frame"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:nylium}
|
* {@code #minecraft:nylium}
|
||||||
@@ -1061,6 +1208,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> OCCLUDES_VIBRATION_SIGNALS = create(key("occludes_vibration_signals"));
|
public static final TagKey<BlockType> OCCLUDES_VIBRATION_SIGNALS = create(key("occludes_vibration_signals"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:ores}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> ORES = create(key("ores"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:overrides_mushroom_light_requirement}
|
* {@code #minecraft:overrides_mushroom_light_requirement}
|
||||||
*
|
*
|
||||||
@@ -1068,13 +1222,6 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> OVERRIDES_MUSHROOM_LIGHT_REQUIREMENT = create(key("overrides_mushroom_light_requirement"));
|
public static final TagKey<BlockType> OVERRIDES_MUSHROOM_LIGHT_REQUIREMENT = create(key("overrides_mushroom_light_requirement"));
|
||||||
|
|
||||||
/**
|
|
||||||
* {@code #minecraft:overworld_carver_replaceables}
|
|
||||||
*
|
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
|
||||||
*/
|
|
||||||
public static final TagKey<BlockType> OVERWORLD_CARVER_REPLACEABLES = create(key("overworld_carver_replaceables"));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:overworld_natural_logs}
|
* {@code #minecraft:overworld_natural_logs}
|
||||||
*
|
*
|
||||||
@@ -1124,6 +1271,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> POLAR_BEARS_SPAWNABLE_ON_ALTERNATE = create(key("polar_bears_spawnable_on_alternate"));
|
public static final TagKey<BlockType> POLAR_BEARS_SPAWNABLE_ON_ALTERNATE = create(key("polar_bears_spawnable_on_alternate"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:poplar_logs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> POPLAR_LOGS = create(key("poplar_logs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:portals}
|
* {@code #minecraft:portals}
|
||||||
*
|
*
|
||||||
@@ -1194,6 +1348,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> REPLACEABLE_BY_TREES = create(key("replaceable_by_trees"));
|
public static final TagKey<BlockType> REPLACEABLE_BY_TREES = create(key("replaceable_by_trees"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:required_for_poplar_leaf_ambience}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> REQUIRED_FOR_POPLAR_LEAF_AMBIENCE = create(key("required_for_poplar_leaf_ambience"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:sand}
|
* {@code #minecraft:sand}
|
||||||
*
|
*
|
||||||
@@ -1208,6 +1369,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> SAPLINGS = create(key("saplings"));
|
public static final TagKey<BlockType> SAPLINGS = create(key("saplings"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:sculk_growth_inhibitors}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> SCULK_GROWTH_INHIBITORS = create(key("sculk_growth_inhibitors"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:sculk_replaceable}
|
* {@code #minecraft:sculk_replaceable}
|
||||||
*
|
*
|
||||||
@@ -1250,6 +1418,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> SHULKER_BOXES = create(key("shulker_boxes"));
|
public static final TagKey<BlockType> SHULKER_BOXES = create(key("shulker_boxes"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:shulker_does_not_teleport_to}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> SHULKER_DOES_NOT_TELEPORT_TO = create(key("shulker_does_not_teleport_to"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:signs}
|
* {@code #minecraft:signs}
|
||||||
*
|
*
|
||||||
@@ -1257,6 +1432,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> SIGNS = create(key("signs"));
|
public static final TagKey<BlockType> SIGNS = create(key("signs"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:skulls}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> SKULLS = create(key("skulls"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:slabs}
|
* {@code #minecraft:slabs}
|
||||||
*
|
*
|
||||||
@@ -1327,6 +1509,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> SOUL_SPEED_BLOCKS = create(key("soul_speed_blocks"));
|
public static final TagKey<BlockType> SOUL_SPEED_BLOCKS = create(key("soul_speed_blocks"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:speeds_up_zombie_villager_curing}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> SPEEDS_UP_ZOMBIE_VILLAGER_CURING = create(key("speeds_up_zombie_villager_curing"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:speleothems}
|
* {@code #minecraft:speleothems}
|
||||||
*
|
*
|
||||||
@@ -1698,6 +1887,27 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> TRIGGERS_AMBIENT_DRIED_GHAST_BLOCK_SOUNDS = create(key("triggers_ambient_dried_ghast_block_sounds"));
|
public static final TagKey<BlockType> TRIGGERS_AMBIENT_DRIED_GHAST_BLOCK_SOUNDS = create(key("triggers_ambient_dried_ghast_block_sounds"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:turns_into_dirt_path}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> TURNS_INTO_DIRT_PATH = create(key("turns_into_dirt_path"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:turns_into_farmland}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> TURNS_INTO_FARMLAND = create(key("turns_into_farmland"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:uncarvable}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> UNCARVABLE = create(key("uncarvable"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:underwater_bonemeals}
|
* {@code #minecraft:underwater_bonemeals}
|
||||||
*
|
*
|
||||||
@@ -1726,6 +1936,20 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> VIBRATION_RESONATORS = create(key("vibration_resonators"));
|
public static final TagKey<BlockType> VIBRATION_RESONATORS = create(key("vibration_resonators"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:villager_babies_can_jump_on_bed}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> VILLAGER_BABIES_CAN_JUMP_ON_BED = create(key("villager_babies_can_jump_on_bed"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:villagers_can_sleep_on_bed}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> VILLAGERS_CAN_SLEEP_ON_BED = create(key("villagers_can_sleep_on_bed"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:wall_corals}
|
* {@code #minecraft:wall_corals}
|
||||||
*
|
*
|
||||||
@@ -1775,6 +1999,13 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> WART_BLOCKS = create(key("wart_blocks"));
|
public static final TagKey<BlockType> WART_BLOCKS = create(key("wart_blocks"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:washed_away_by_fluids}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> WASHED_AWAY_BY_FLUIDS = create(key("washed_away_by_fluids"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:wither_immune}
|
* {@code #minecraft:wither_immune}
|
||||||
*
|
*
|
||||||
@@ -1880,6 +2111,20 @@ public final class BlockTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<BlockType> WOOL_CARPETS = create(key("wool_carpets"));
|
public static final TagKey<BlockType> WOOL_CARPETS = create(key("wool_carpets"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:wool_slabs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> WOOL_SLABS = create(key("wool_slabs"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<BlockType> WOOL_STAIRS = create(key("wool_stairs"));
|
||||||
|
|
||||||
private BlockTypeTagKeys() {
|
private BlockTypeTagKeys() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+14
@@ -81,6 +81,13 @@ public final class DamageTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<DamageType> BYPASSES_ARMOR = create(key("bypasses_armor"));
|
public static final TagKey<DamageType> BYPASSES_ARMOR = create(key("bypasses_armor"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:bypasses_cooldown}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<DamageType> BYPASSES_COOLDOWN = create(key("bypasses_cooldown"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:bypasses_effects}
|
* {@code #minecraft:bypasses_effects}
|
||||||
*
|
*
|
||||||
@@ -228,6 +235,13 @@ public final class DamageTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<DamageType> NO_KNOCKBACK = create(key("no_knockback"));
|
public static final TagKey<DamageType> NO_KNOCKBACK = create(key("no_knockback"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:no_wolf_retaliation}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<DamageType> NO_WOLF_RETALIATION = create(key("no_wolf_retaliation"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:panic_causes}
|
* {@code #minecraft:panic_causes}
|
||||||
*
|
*
|
||||||
|
|||||||
+7
@@ -151,6 +151,13 @@ public final class EntityTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<EntityType> CANNOT_BE_AGE_LOCKED = create(key("cannot_be_age_locked"));
|
public static final TagKey<EntityType> CANNOT_BE_AGE_LOCKED = create(key("cannot_be_age_locked"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:cannot_be_dismounted_by_item_usage}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<EntityType> CANNOT_BE_DISMOUNTED_BY_ITEM_USAGE = create(key("cannot_be_dismounted_by_item_usage"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:cannot_be_pushed_onto_boats}
|
* {@code #minecraft:cannot_be_pushed_onto_boats}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -25,6 +25,13 @@ import org.jspecify.annotations.NullMarked;
|
|||||||
@NullMarked
|
@NullMarked
|
||||||
@GeneratedClass
|
@GeneratedClass
|
||||||
public final class FluidTagKeys {
|
public final class FluidTagKeys {
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:axolotl_tries_to_find}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Fluid> AXOLOTL_TRIES_TO_FIND = create(key("axolotl_tries_to_find"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:bubble_column_can_occupy}
|
* {@code #minecraft:bubble_column_can_occupy}
|
||||||
*
|
*
|
||||||
@@ -32,6 +39,27 @@ public final class FluidTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<Fluid> BUBBLE_COLUMN_CAN_OCCUPY = create(key("bubble_column_can_occupy"));
|
public static final TagKey<Fluid> BUBBLE_COLUMN_CAN_OCCUPY = create(key("bubble_column_can_occupy"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:dolphin_tries_to_find}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Fluid> DOLPHIN_TRIES_TO_FIND = create(key("dolphin_tries_to_find"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:entity_floatable}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Fluid> ENTITY_FLOATABLE = create(key("entity_floatable"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:frog_tries_to_find_land_near}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Fluid> FROG_TRIES_TO_FIND_LAND_NEAR = create(key("frog_tries_to_find_land_near"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:lava}
|
* {@code #minecraft:lava}
|
||||||
*
|
*
|
||||||
|
|||||||
+86
-2
@@ -145,11 +145,11 @@ public final class ItemTypeTagKeys {
|
|||||||
public static final TagKey<ItemType> BREAKS_DECORATED_POTS = create(key("breaks_decorated_pots"));
|
public static final TagKey<ItemType> BREAKS_DECORATED_POTS = create(key("breaks_decorated_pots"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:brewing_fuel}
|
* {@code #minecraft:brewing_potion_inputs}
|
||||||
*
|
*
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> BREWING_FUEL = create(key("brewing_fuel"));
|
public static final TagKey<ItemType> BREWING_POTION_INPUTS = create(key("brewing_potion_inputs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:bundles}
|
* {@code #minecraft:bundles}
|
||||||
@@ -242,6 +242,13 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> CHICKEN_FOOD = create(key("chicken_food"));
|
public static final TagKey<ItemType> CHICKEN_FOOD = create(key("chicken_food"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:clonable_maps}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> CLONABLE_MAPS = create(key("clonable_maps"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:cluster_max_harvestables}
|
* {@code #minecraft:cluster_max_harvestables}
|
||||||
*
|
*
|
||||||
@@ -291,6 +298,20 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> CONCRETE_POWDERS = create(key("concrete_powders"));
|
public static final TagKey<ItemType> CONCRETE_POWDERS = create(key("concrete_powders"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:concrete_slabs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> CONCRETE_SLABS = create(key("concrete_slabs"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:concrete_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> CONCRETE_STAIRS = create(key("concrete_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:copper}
|
* {@code #minecraft:copper}
|
||||||
*
|
*
|
||||||
@@ -354,6 +375,13 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> CRIMSON_STEMS = create(key("crimson_stems"));
|
public static final TagKey<ItemType> CRIMSON_STEMS = create(key("crimson_stems"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:cushions}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> CUSHIONS = create(key("cushions"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:dampens_vibrations}
|
* {@code #minecraft:dampens_vibrations}
|
||||||
*
|
*
|
||||||
@@ -410,6 +438,13 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> DOORS = create(key("doors"));
|
public static final TagKey<ItemType> DOORS = create(key("doors"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:douses_campfires}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> DOUSES_CAMPFIRES = create(key("douses_campfires"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:drowned_preferred_weapons}
|
* {@code #minecraft:drowned_preferred_weapons}
|
||||||
*
|
*
|
||||||
@@ -592,6 +627,13 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> ENCHANTABLE_WEAPON = create(key("enchantable/weapon"));
|
public static final TagKey<ItemType> ENCHANTABLE_WEAPON = create(key("enchantable/weapon"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:extendable_maps}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> EXTENDABLE_MAPS = create(key("extendable_maps"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:fence_gates}
|
* {@code #minecraft:fence_gates}
|
||||||
*
|
*
|
||||||
@@ -648,6 +690,13 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> FROG_FOOD = create(key("frog_food"));
|
public static final TagKey<ItemType> FROG_FOOD = create(key("frog_food"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:furnace_fuel_bottom_takeable}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> FURNACE_FUEL_BOTTOM_TAKEABLE = create(key("furnace_fuel_bottom_takeable"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:furnace_minecart_fuel}
|
* {@code #minecraft:furnace_minecart_fuel}
|
||||||
*
|
*
|
||||||
@@ -914,6 +963,13 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> MUD = create(key("mud"));
|
public static final TagKey<ItemType> MUD = create(key("mud"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:mushrooms}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> MUSHROOMS = create(key("mushrooms"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:nautilus_bucket_food}
|
* {@code #minecraft:nautilus_bucket_food}
|
||||||
*
|
*
|
||||||
@@ -970,6 +1026,13 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> OCELOT_FOOD = create(key("ocelot_food"));
|
public static final TagKey<ItemType> OCELOT_FOOD = create(key("ocelot_food"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:ores}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> ORES = create(key("ores"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:pale_oak_logs}
|
* {@code #minecraft:pale_oak_logs}
|
||||||
*
|
*
|
||||||
@@ -1068,6 +1131,13 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> PLANKS = create(key("planks"));
|
public static final TagKey<ItemType> PLANKS = create(key("planks"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:poplar_logs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> POPLAR_LOGS = create(key("poplar_logs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:rabbit_food}
|
* {@code #minecraft:rabbit_food}
|
||||||
*
|
*
|
||||||
@@ -1586,6 +1656,20 @@ public final class ItemTypeTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<ItemType> WOOL_CARPETS = create(key("wool_carpets"));
|
public static final TagKey<ItemType> WOOL_CARPETS = create(key("wool_carpets"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:wool_slabs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> WOOL_SLABS = create(key("wool_slabs"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:wool_stairs}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<ItemType> WOOL_STAIRS = create(key("wool_stairs"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:zombie_horse_food}
|
* {@code #minecraft:zombie_horse_food}
|
||||||
*
|
*
|
||||||
|
|||||||
+28
@@ -25,6 +25,34 @@ import org.jspecify.annotations.NullMarked;
|
|||||||
@NullMarked
|
@NullMarked
|
||||||
@GeneratedClass
|
@GeneratedClass
|
||||||
public final class PotionTypeTagKeys {
|
public final class PotionTypeTagKeys {
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:douses_fire}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<PotionType> DOUSES_FIRE = create(key("douses_fire"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:extinguishes_entities}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<PotionType> EXTINGUISHES_ENTITIES = create(key("extinguishes_entities"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:hurts_water_sensitive_entities}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<PotionType> HURTS_WATER_SENSITIVE_ENTITIES = create(key("hurts_water_sensitive_entities"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:rehydrates_axolotls}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<PotionType> REHYDRATES_AXOLOTLS = create(key("rehydrates_axolotls"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:tradeable}
|
* {@code #minecraft:tradeable}
|
||||||
*
|
*
|
||||||
|
|||||||
+106
-15
@@ -25,6 +25,13 @@ import org.jspecify.annotations.NullMarked;
|
|||||||
@NullMarked
|
@NullMarked
|
||||||
@GeneratedClass
|
@GeneratedClass
|
||||||
public final class StructureTagKeys {
|
public final class StructureTagKeys {
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:abandoned_camp}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ABANDONED_CAMP = create(key("abandoned_camp"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:cats_spawn_as_black}
|
* {@code #minecraft:cats_spawn_as_black}
|
||||||
*
|
*
|
||||||
@@ -67,6 +74,83 @@ public final class StructureTagKeys {
|
|||||||
*/
|
*/
|
||||||
public static final TagKey<Structure> OCEAN_RUIN = create(key("ocean_ruin"));
|
public static final TagKey<Structure> OCEAN_RUIN = create(key("ocean_ruin"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_abandoned_camp_bamboo_jungle}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_ABANDONED_CAMP_BAMBOO_JUNGLE = create(key("on_abandoned_camp_bamboo_jungle"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_abandoned_camp_birch_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_ABANDONED_CAMP_BIRCH_FOREST = create(key("on_abandoned_camp_birch_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_abandoned_camp_cherry_grove}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_ABANDONED_CAMP_CHERRY_GROVE = create(key("on_abandoned_camp_cherry_grove"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_abandoned_camp_dappled_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_ABANDONED_CAMP_DAPPLED_FOREST = create(key("on_abandoned_camp_dappled_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_abandoned_camp_flower_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_ABANDONED_CAMP_FLOWER_FOREST = create(key("on_abandoned_camp_flower_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_abandoned_camp_pale_garden}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_ABANDONED_CAMP_PALE_GARDEN = create(key("on_abandoned_camp_pale_garden"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_abandoned_camp_swamp}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_ABANDONED_CAMP_SWAMP = create(key("on_abandoned_camp_swamp"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_abandoned_camp_windswept_forest}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_ABANDONED_CAMP_WINDSWEPT_FOREST = create(key("on_abandoned_camp_windswept_forest"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_ancient_city_maps}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_ANCIENT_CITY_MAPS = create(key("on_ancient_city_maps"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_buried_trial_chambers_maps}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_BURIED_TRIAL_CHAMBERS_MAPS = create(key("on_buried_trial_chambers_maps"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_desert_pyramid_maps}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_DESERT_PYRAMID_MAPS = create(key("on_desert_pyramid_maps"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:on_desert_village_maps}
|
* {@code #minecraft:on_desert_village_maps}
|
||||||
*
|
*
|
||||||
@@ -75,18 +159,32 @@ public final class StructureTagKeys {
|
|||||||
public static final TagKey<Structure> ON_DESERT_VILLAGE_MAPS = create(key("on_desert_village_maps"));
|
public static final TagKey<Structure> ON_DESERT_VILLAGE_MAPS = create(key("on_desert_village_maps"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:on_jungle_explorer_maps}
|
* {@code #minecraft:on_jungle_pyramid_maps}
|
||||||
*
|
*
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
*/
|
*/
|
||||||
public static final TagKey<Structure> ON_JUNGLE_EXPLORER_MAPS = create(key("on_jungle_explorer_maps"));
|
public static final TagKey<Structure> ON_JUNGLE_PYRAMID_MAPS = create(key("on_jungle_pyramid_maps"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:on_ocean_explorer_maps}
|
* {@code #minecraft:on_mineshaft_maps}
|
||||||
*
|
*
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
*/
|
*/
|
||||||
public static final TagKey<Structure> ON_OCEAN_EXPLORER_MAPS = create(key("on_ocean_explorer_maps"));
|
public static final TagKey<Structure> ON_MINESHAFT_MAPS = create(key("on_mineshaft_maps"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_ocean_monument_maps}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_OCEAN_MONUMENT_MAPS = create(key("on_ocean_monument_maps"));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@code #minecraft:on_ocean_ruin_warm_maps}
|
||||||
|
*
|
||||||
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
|
*/
|
||||||
|
public static final TagKey<Structure> ON_OCEAN_RUIN_WARM_MAPS = create(key("on_ocean_ruin_warm_maps"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:on_plains_village_maps}
|
* {@code #minecraft:on_plains_village_maps}
|
||||||
@@ -110,11 +208,11 @@ public final class StructureTagKeys {
|
|||||||
public static final TagKey<Structure> ON_SNOWY_VILLAGE_MAPS = create(key("on_snowy_village_maps"));
|
public static final TagKey<Structure> ON_SNOWY_VILLAGE_MAPS = create(key("on_snowy_village_maps"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:on_swamp_explorer_maps}
|
* {@code #minecraft:on_swamp_hut_maps}
|
||||||
*
|
*
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
*/
|
*/
|
||||||
public static final TagKey<Structure> ON_SWAMP_EXPLORER_MAPS = create(key("on_swamp_explorer_maps"));
|
public static final TagKey<Structure> ON_SWAMP_HUT_MAPS = create(key("on_swamp_hut_maps"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:on_taiga_village_maps}
|
* {@code #minecraft:on_taiga_village_maps}
|
||||||
@@ -131,18 +229,11 @@ public final class StructureTagKeys {
|
|||||||
public static final TagKey<Structure> ON_TREASURE_MAPS = create(key("on_treasure_maps"));
|
public static final TagKey<Structure> ON_TREASURE_MAPS = create(key("on_treasure_maps"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:on_trial_chambers_maps}
|
* {@code #minecraft:on_woodland_mansion_maps}
|
||||||
*
|
*
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||||
*/
|
*/
|
||||||
public static final TagKey<Structure> ON_TRIAL_CHAMBERS_MAPS = create(key("on_trial_chambers_maps"));
|
public static final TagKey<Structure> ON_WOODLAND_MANSION_MAPS = create(key("on_woodland_mansion_maps"));
|
||||||
|
|
||||||
/**
|
|
||||||
* {@code #minecraft:on_woodland_explorer_maps}
|
|
||||||
*
|
|
||||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
|
||||||
*/
|
|
||||||
public static final TagKey<Structure> ON_WOODLAND_EXPLORER_MAPS = create(key("on_woodland_explorer_maps"));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code #minecraft:ruined_portal}
|
* {@code #minecraft:ruined_portal}
|
||||||
|
|||||||
@@ -224,24 +224,29 @@ public class MaterialTags {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Covers all mushrooms.
|
* Covers all mushrooms.
|
||||||
|
*
|
||||||
|
* @deprecated in favour of {@link Tag#ITEMS_MUSHROOMS}
|
||||||
*/
|
*/
|
||||||
public static final MaterialSetTag MUSHROOMS = new MaterialSetTag(keyFor("mushrooms"))
|
@Deprecated(since = "26.3")
|
||||||
.add(Material.BROWN_MUSHROOM, Material.RED_MUSHROOM).lock();
|
public static final MaterialSetTag MUSHROOMS = replacedBy(Tag.ITEMS_MUSHROOMS);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Covers all music disc items.
|
* Covers all music disc items.
|
||||||
*/
|
*/
|
||||||
public static final MaterialSetTag MUSIC_DISCS = new MaterialSetTag(keyFor("music_discs"))
|
public static final MaterialSetTag MUSIC_DISCS = new MaterialSetTag(keyFor("music_discs"))
|
||||||
.startsWith("MUSIC_DISC_").lock();
|
.startsWith("MUSIC_DISC_")
|
||||||
|
.ensureSize("MUSIC_DISCS", 22).lock();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Covers all ores.
|
* Covers all ores.
|
||||||
|
*
|
||||||
|
* @deprecated in favour of {@link Tag#ORES}, makes sure to also check for ancient debris if you relied on this edge case
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@Deprecated(since = "26.3")
|
||||||
public static final MaterialSetTag ORES = new MaterialSetTag(keyFor("ores"))
|
public static final MaterialSetTag ORES = new MaterialSetTag(keyFor("ores"))
|
||||||
.add(Tag.COAL_ORES, Tag.COPPER_ORES, Tag.IRON_ORES, Tag.GOLD_ORES,
|
.add(Tag.ORES)
|
||||||
Tag.LAPIS_ORES, Tag.REDSTONE_ORES, Tag.DIAMOND_ORES, Tag.EMERALD_ORES)
|
.add(Material.ANCIENT_DEBRIS).lock();
|
||||||
.add(Material.ANCIENT_DEBRIS, Material.NETHER_QUARTZ_ORE).lock();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Covers all piston typed items and blocks including the piston head and moving piston.
|
* Covers all piston typed items and blocks including the piston head and moving piston.
|
||||||
@@ -591,7 +596,9 @@ public class MaterialTags {
|
|||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public static final MaterialSetTag COLORABLE = new MaterialSetTag(keyFor("colorable"))
|
public static final MaterialSetTag COLORABLE = new MaterialSetTag(keyFor("colorable"))
|
||||||
.add(Tag.WOOL, Tag.WOOL_CARPETS, Tag.SHULKER_BOXES, Tag.BEDS, Tag.CONCRETE)
|
.add(Tag.WOOL, Tag.WOOL_CARPETS, Tag.WOOL_SLABS, Tag.WOOL_STAIRS,
|
||||||
|
Tag.CONCRETE_SLABS, Tag.CONCRETE_STAIRS,
|
||||||
|
Tag.SHULKER_BOXES, Tag.BEDS, Tag.ITEMS_CUSHIONS)
|
||||||
.add(STAINED_GLASS, STAINED_GLASS_PANES)
|
.add(STAINED_GLASS, STAINED_GLASS_PANES)
|
||||||
.lock();
|
.lock();
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import org.jspecify.annotations.Nullable;
|
|||||||
/**
|
/**
|
||||||
* Helps prepare a particle to be sent to players.
|
* Helps prepare a particle to be sent to players.
|
||||||
* <p>
|
* <p>
|
||||||
* Usage of the builder is preferred over the super long {@link World#spawnParticle(Particle, Location, int, double, double, double, double, Object)} API
|
* Usage of the builder is preferred over the super long {@link World#spawnParticle(Particle, List, Player, double, double, double, int, double, double, double, double, double, double, Object, boolean, Particle.RandomizationType)} API.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
@NullMarked
|
||||||
public class ParticleBuilder implements Cloneable {
|
public class ParticleBuilder implements Cloneable {
|
||||||
@@ -28,9 +28,10 @@ public class ParticleBuilder implements Cloneable {
|
|||||||
private @Nullable Location location;
|
private @Nullable Location location;
|
||||||
private int count = 1;
|
private int count = 1;
|
||||||
private double offsetX = 0, offsetY = 0, offsetZ = 0;
|
private double offsetX = 0, offsetY = 0, offsetZ = 0;
|
||||||
private double extra = 1;
|
private double speedX = 1, speedY = 1, speedZ = 1;
|
||||||
private @Nullable Object data;
|
private @Nullable Object data;
|
||||||
private boolean force = true;
|
private boolean force = true;
|
||||||
|
private Particle.RandomizationType randomizationType = Particle.RandomizationType.DEFAULT;
|
||||||
|
|
||||||
public ParticleBuilder(final Particle particle) {
|
public ParticleBuilder(final Particle particle) {
|
||||||
this.particle = particle;
|
this.particle = particle;
|
||||||
@@ -49,7 +50,8 @@ public class ParticleBuilder implements Cloneable {
|
|||||||
this.location.getWorld().spawnParticle(
|
this.location.getWorld().spawnParticle(
|
||||||
this.particle, this.receivers, this.source,
|
this.particle, this.receivers, this.source,
|
||||||
this.location.getX(), this.location.getY(), this.location.getZ(),
|
this.location.getX(), this.location.getY(), this.location.getZ(),
|
||||||
this.count, this.offsetX, this.offsetY, this.offsetZ, this.extra, this.data, this.force
|
this.count, this.offsetX, this.offsetY, this.offsetZ, this.speedX, this.speedY, this.speedZ,
|
||||||
|
this.data, this.force, this.randomizationType
|
||||||
);
|
);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -131,7 +133,7 @@ public class ParticleBuilder implements Cloneable {
|
|||||||
* world
|
* world
|
||||||
* @return a reference to this object.
|
* @return a reference to this object.
|
||||||
*/
|
*/
|
||||||
public ParticleBuilder receivers(final Player @Nullable... receivers) {
|
public ParticleBuilder receivers(final Player @Nullable ... receivers) {
|
||||||
this.receivers = receivers != null ? Lists.newArrayList(receivers) : null;
|
this.receivers = receivers != null ? Lists.newArrayList(receivers) : null;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -357,12 +359,14 @@ public class ParticleBuilder implements Cloneable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Particle extra data. Varies by particle on how this is used
|
* Gets the Particle extra data (speedX). Varies by particle on how this is used
|
||||||
*
|
*
|
||||||
* @return the extra particle data
|
* @return the extra particle data
|
||||||
|
* @deprecated use one of the {@code speed} methods instead
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(since = "26.3", forRemoval = true)
|
||||||
public double extra() {
|
public double extra() {
|
||||||
return this.extra;
|
return this.speedX;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -370,9 +374,62 @@ public class ParticleBuilder implements Cloneable {
|
|||||||
*
|
*
|
||||||
* @param extra the extra particle data
|
* @param extra the extra particle data
|
||||||
* @return a reference to this object.
|
* @return a reference to this object.
|
||||||
|
* @deprecated use {@link #speed(double)} instead
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(since = "26.3", forRemoval = true)
|
||||||
public ParticleBuilder extra(final double extra) {
|
public ParticleBuilder extra(final double extra) {
|
||||||
this.extra = extra;
|
return this.speed(extra);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Particle speed X. Varies by particle on how this is used
|
||||||
|
*
|
||||||
|
* @return the particle speed X
|
||||||
|
*/
|
||||||
|
public double speedX() {
|
||||||
|
return this.speedX;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Particle speed Y. Varies by particle on how this is used
|
||||||
|
*
|
||||||
|
* @return the particle speed Y
|
||||||
|
*/
|
||||||
|
public double speedY() {
|
||||||
|
return this.speedY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Particle speed Z. Varies by particle on how this is used
|
||||||
|
*
|
||||||
|
* @return the particle speed Z
|
||||||
|
*/
|
||||||
|
public double speedZ() {
|
||||||
|
return this.speedZ;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the particle speed. Varies by particle on how this is used
|
||||||
|
*
|
||||||
|
* @param speed Particle speed
|
||||||
|
* @return a reference to this object.
|
||||||
|
*/
|
||||||
|
public ParticleBuilder speed(final double speed) {
|
||||||
|
return this.speed(speed, speed, speed);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the particle speed. Varies by particle on how this is used
|
||||||
|
*
|
||||||
|
* @param speedX Particle speed X
|
||||||
|
* @param speedY Particle speed Y
|
||||||
|
* @param speedZ Particle speed Z
|
||||||
|
* @return a reference to this object.
|
||||||
|
*/
|
||||||
|
public ParticleBuilder speed(final double speedX, final double speedY, final double speedZ) {
|
||||||
|
this.speedX = speedX;
|
||||||
|
this.speedY = speedY;
|
||||||
|
this.speedZ = speedZ;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -419,6 +476,26 @@ public class ParticleBuilder implements Cloneable {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the randomization type for the particle. This determines how the particle's position and velocity are randomized.
|
||||||
|
*
|
||||||
|
* @return the randomization type for the particle
|
||||||
|
*/
|
||||||
|
public Particle.RandomizationType randomizationType() {
|
||||||
|
return this.randomizationType;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the randomization type for the particle. This determines how the particle's position and velocity are randomized.
|
||||||
|
*
|
||||||
|
* @param randomizationType the new randomization type for the particle
|
||||||
|
* @return a reference to this object.
|
||||||
|
*/
|
||||||
|
public ParticleBuilder randomizationType(final Particle.RandomizationType randomizationType) {
|
||||||
|
this.randomizationType = randomizationType;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the particle Color.
|
* Sets the particle Color.
|
||||||
* Only valid for particles with a data type of {@link Color}, {@link Particle.DustOptions} or {@link Particle.Spell}.
|
* Only valid for particles with a data type of {@link Color}, {@link Particle.DustOptions} or {@link Particle.Spell}.
|
||||||
|
|||||||
@@ -2,63 +2,58 @@ package com.destroystokyo.paper.block;
|
|||||||
|
|
||||||
import org.bukkit.Sound;
|
import org.bukkit.Sound;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the sounds that a {@link Block} makes in certain situations
|
* Represents the sounds that a {@link Block} makes in certain situations.
|
||||||
* <p>
|
* <p>
|
||||||
* The sound group includes break, step, place, hit, and fall sounds.
|
* The sound group includes break, step, place, hit, and fall sounds.
|
||||||
|
*
|
||||||
* @deprecated use {@link org.bukkit.SoundGroup}
|
* @deprecated use {@link org.bukkit.SoundGroup}
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "1.18.2")
|
@Deprecated(forRemoval = true, since = "1.18.2")
|
||||||
public interface BlockSoundGroup {
|
public interface BlockSoundGroup {
|
||||||
/**
|
/**
|
||||||
* Gets the sound that plays when breaking this block
|
* Gets the sound that plays when breaking this block.
|
||||||
*
|
*
|
||||||
* @return The break sound
|
* @return The break sound
|
||||||
* @deprecated use {@link org.bukkit.SoundGroup#getBreakSound()}
|
* @deprecated use {@link org.bukkit.SoundGroup#getBreakSound()}
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
@Deprecated(forRemoval = true, since = "1.18.2")
|
@Deprecated(forRemoval = true, since = "1.18.2")
|
||||||
Sound getBreakSound();
|
Sound getBreakSound();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the sound that plays when stepping on this block
|
* Gets the sound that plays when stepping on this block.
|
||||||
*
|
*
|
||||||
* @return The step sound
|
* @return The step sound
|
||||||
* @deprecated use {@link org.bukkit.SoundGroup#getStepSound()}
|
* @deprecated use {@link org.bukkit.SoundGroup#getStepSound()}
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
@Deprecated(forRemoval = true, since = "1.18.2")
|
@Deprecated(forRemoval = true, since = "1.18.2")
|
||||||
Sound getStepSound();
|
Sound getStepSound();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the sound that plays when placing this block
|
* Gets the sound that plays when placing this block.
|
||||||
*
|
*
|
||||||
* @return The place sound
|
* @return The place sound
|
||||||
* @deprecated use {@link org.bukkit.SoundGroup#getPlaceSound()}
|
* @deprecated use {@link org.bukkit.SoundGroup#getPlaceSound()}
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
@Deprecated(forRemoval = true, since = "1.18.2")
|
@Deprecated(forRemoval = true, since = "1.18.2")
|
||||||
Sound getPlaceSound();
|
Sound getPlaceSound();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the sound that plays when hitting this block
|
* Gets the sound that plays when hitting this block.
|
||||||
*
|
*
|
||||||
* @return The hit sound
|
* @return The hit sound
|
||||||
* @deprecated use {@link org.bukkit.SoundGroup#getHitSound()}
|
* @deprecated use {@link org.bukkit.SoundGroup#getHitSound()}
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
@Deprecated(forRemoval = true, since = "1.18.2")
|
@Deprecated(forRemoval = true, since = "1.18.2")
|
||||||
Sound getHitSound();
|
Sound getHitSound();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the sound that plays when this block falls
|
* Gets the sound that plays when this block falls.
|
||||||
*
|
*
|
||||||
* @return The fall sound
|
* @return The fall sound
|
||||||
* @deprecated use {@link org.bukkit.SoundGroup#getFallSound()}
|
* @deprecated use {@link org.bukkit.SoundGroup#getFallSound()}
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
@Deprecated(forRemoval = true, since = "1.18.2")
|
@Deprecated(forRemoval = true, since = "1.18.2")
|
||||||
Sound getFallSound();
|
Sound getFallSound();
|
||||||
}
|
}
|
||||||
@@ -3,10 +3,10 @@ package com.destroystokyo.paper.block;
|
|||||||
import org.bukkit.FluidCollisionMode;
|
import org.bukkit.FluidCollisionMode;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents information about a targeted block
|
* Represents information about a targeted block.
|
||||||
|
*
|
||||||
* @deprecated use {@link org.bukkit.util.RayTraceResult}
|
* @deprecated use {@link org.bukkit.util.RayTraceResult}
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "1.19.3")
|
@Deprecated(forRemoval = true, since = "1.19.3")
|
||||||
@@ -14,42 +14,41 @@ public class TargetBlockInfo {
|
|||||||
private final Block block;
|
private final Block block;
|
||||||
private final BlockFace blockFace;
|
private final BlockFace blockFace;
|
||||||
|
|
||||||
public TargetBlockInfo(@NotNull Block block, @NotNull BlockFace blockFace) {
|
public TargetBlockInfo(final Block block, final BlockFace blockFace) {
|
||||||
this.block = block;
|
this.block = block;
|
||||||
this.blockFace = blockFace;
|
this.blockFace = blockFace;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the block that is targeted
|
* Get the block that is targeted.
|
||||||
*
|
*
|
||||||
* @return Targeted block
|
* @return Targeted block
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
public Block getBlock() {
|
public Block getBlock() {
|
||||||
return block;
|
return this.block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the targeted BlockFace
|
* Get the targeted BlockFace.
|
||||||
*
|
*
|
||||||
* @return Targeted blockface
|
* @return Targeted blockface
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
public BlockFace getBlockFace() {
|
public BlockFace getBlockFace() {
|
||||||
return blockFace;
|
return this.blockFace;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the relative Block to the targeted block on the side it is targeted at
|
* Get the relative Block to the targeted block on the side it is targeted at.
|
||||||
*
|
*
|
||||||
* @return Block relative to targeted block
|
* @return Block relative to targeted block
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
public Block getRelativeBlock() {
|
public Block getRelativeBlock() {
|
||||||
return block.getRelative(blockFace);
|
return this.block.getRelative(this.blockFace);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Determines whether fluids are considered when targeting a block.
|
||||||
|
*
|
||||||
* @deprecated use {@link org.bukkit.FluidCollisionMode}
|
* @deprecated use {@link org.bukkit.FluidCollisionMode}
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "1.19.3")
|
@Deprecated(forRemoval = true, since = "1.19.3")
|
||||||
@@ -60,7 +59,7 @@ public class TargetBlockInfo {
|
|||||||
|
|
||||||
public final FluidCollisionMode bukkit;
|
public final FluidCollisionMode bukkit;
|
||||||
|
|
||||||
FluidMode(FluidCollisionMode bukkit) {
|
FluidMode(final FluidCollisionMode bukkit) {
|
||||||
this.bukkit = bukkit;
|
this.bukkit = bukkit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Deprecated block API, replaced by {@link org.bukkit.SoundGroup} and {@link org.bukkit.util.RayTraceResult}.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.block;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
+1
-2
@@ -2,7 +2,6 @@ package com.destroystokyo.paper.brigadier;
|
|||||||
|
|
||||||
import com.mojang.brigadier.Command;
|
import com.mojang.brigadier.Command;
|
||||||
import com.mojang.brigadier.suggestion.SuggestionProvider;
|
import com.mojang.brigadier.suggestion.SuggestionProvider;
|
||||||
|
|
||||||
import java.util.function.Predicate;
|
import java.util.function.Predicate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -12,5 +11,5 @@ import java.util.function.Predicate;
|
|||||||
* @deprecated For removal, see {@link io.papermc.paper.command.brigadier.Commands} on how to use the new Brigadier API.
|
* @deprecated For removal, see {@link io.papermc.paper.command.brigadier.Commands} on how to use the new Brigadier API.
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "1.20.6")
|
@Deprecated(forRemoval = true, since = "1.20.6")
|
||||||
public interface BukkitBrigadierCommand <S extends BukkitBrigadierCommandSource> extends Command<S>, Predicate<S>, SuggestionProvider<S> {
|
public interface BukkitBrigadierCommand<S extends BukkitBrigadierCommandSource> extends Command<S>, Predicate<S>, SuggestionProvider<S> {
|
||||||
}
|
}
|
||||||
+6
-7
@@ -4,22 +4,21 @@ import org.bukkit.Location;
|
|||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* A command source that exposes its Bukkit equivalents.
|
||||||
|
*
|
||||||
* @deprecated For removal, see {@link io.papermc.paper.command.brigadier.Commands} on how to use the new Brigadier API.
|
* @deprecated For removal, see {@link io.papermc.paper.command.brigadier.Commands} on how to use the new Brigadier API.
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true)
|
||||||
public interface BukkitBrigadierCommandSource {
|
public interface BukkitBrigadierCommandSource {
|
||||||
|
|
||||||
@Nullable
|
@Nullable Entity getBukkitEntity();
|
||||||
Entity getBukkitEntity();
|
|
||||||
|
|
||||||
@Nullable
|
@Nullable World getBukkitWorld();
|
||||||
World getBukkitWorld();
|
|
||||||
|
|
||||||
@Nullable
|
@Nullable Location getBukkitLocation();
|
||||||
Location getBukkitLocation();
|
|
||||||
|
|
||||||
CommandSender getBukkitSender();
|
CommandSender getBukkitSender();
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Deprecated Brigadier integration, replaced by {@link io.papermc.paper.command.brigadier.Commands}.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.brigadier;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -2,37 +2,39 @@ package com.destroystokyo.paper.entity;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.LivingEntity;
|
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.entity.Mob;
|
import org.bukkit.entity.Mob;
|
||||||
import org.checkerframework.checker.index.qual.NonNegative;
|
import org.checkerframework.checker.index.qual.NonNegative;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles pathfinding operations for an Entity
|
* Handles pathfinding operations for an Entity.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public interface Pathfinder {
|
public interface Pathfinder {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the entity that is controlled by this pathfinder.
|
||||||
|
*
|
||||||
* @return The entity that is controlled by this pathfinder
|
* @return The entity that is controlled by this pathfinder
|
||||||
*/
|
*/
|
||||||
Mob getEntity();
|
Mob getEntity();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instructs the Entity to stop trying to navigate to its current desired location
|
* Instructs the Entity to stop trying to navigate to its current desired location.
|
||||||
*/
|
*/
|
||||||
void stopPathfinding();
|
void stopPathfinding();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If the entity is currently trying to navigate to a destination, this will return true
|
* If the entity is currently trying to navigate to a destination, this will return true.
|
||||||
*
|
*
|
||||||
* @return true if the entity is navigating to a destination
|
* @return true if the entity is navigating to a destination
|
||||||
*/
|
*/
|
||||||
boolean hasPath();
|
boolean hasPath();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the path the entity is currently following.
|
||||||
|
*
|
||||||
* @return The location the entity is trying to navigate to, or null if there is no destination
|
* @return The location the entity is trying to navigate to, or null if there is no destination
|
||||||
*/
|
*/
|
||||||
@Nullable PathResult getCurrentPath();
|
@Nullable PathResult getCurrentPath();
|
||||||
@@ -44,7 +46,7 @@ public interface Pathfinder {
|
|||||||
* @param loc Location to navigate to
|
* @param loc Location to navigate to
|
||||||
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
||||||
*/
|
*/
|
||||||
default @Nullable PathResult findPath(Location loc) {
|
default @Nullable PathResult findPath(final Location loc) {
|
||||||
return this.findPath(loc, 0);
|
return this.findPath(loc, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,12 +54,12 @@ public interface Pathfinder {
|
|||||||
* Calculates a destination for the Entity to navigate to, but does not set it
|
* Calculates a destination for the Entity to navigate to, but does not set it
|
||||||
* as the current target. Useful for calculating what would happen before setting it.
|
* as the current target. Useful for calculating what would happen before setting it.
|
||||||
*
|
*
|
||||||
* @param loc Location to navigate to
|
* @param loc Location to navigate to
|
||||||
* @param reachRange The <a href="https://cp-algorithms.com/geometry/manhattan-distance.html">Manhattan-distance</a> threshold
|
* @param reachRange The <a href="https://cp-algorithms.com/geometry/manhattan-distance.html">Manhattan-distance</a> threshold
|
||||||
* from the target position at which the path is considered reached, where {@code 0} requires the exact target position
|
* from the target position at which the path is considered reached, where {@code 0} requires the exact target position
|
||||||
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
||||||
*/
|
*/
|
||||||
@Nullable PathResult findPath(final Location loc, final @NonNegative int reachRange);
|
@Nullable PathResult findPath(Location loc, @NonNegative int reachRange);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates a destination for the Entity to navigate to reach the target entity,
|
* Calculates a destination for the Entity to navigate to reach the target entity,
|
||||||
@@ -72,8 +74,7 @@ public interface Pathfinder {
|
|||||||
* @param target the Entity to navigate to
|
* @param target the Entity to navigate to
|
||||||
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
||||||
*/
|
*/
|
||||||
@Nullable
|
default @Nullable PathResult findPath(final LivingEntity target) {
|
||||||
default PathResult findPath(LivingEntity target) {
|
|
||||||
return this.findPath((Entity) target);
|
return this.findPath((Entity) target);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,7 +91,7 @@ public interface Pathfinder {
|
|||||||
* @param target the Entity to navigate to
|
* @param target the Entity to navigate to
|
||||||
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
||||||
*/
|
*/
|
||||||
default @Nullable PathResult findPath(Entity target) {
|
default @Nullable PathResult findPath(final Entity target) {
|
||||||
return this.findPath(target, 0);
|
return this.findPath(target, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,12 +105,12 @@ public interface Pathfinder {
|
|||||||
* <p>
|
* <p>
|
||||||
* However, this behavior is not guaranteed, and is subject to the games behavior.
|
* However, this behavior is not guaranteed, and is subject to the games behavior.
|
||||||
*
|
*
|
||||||
* @param target the Entity to navigate to
|
* @param target the Entity to navigate to
|
||||||
* @param reachRange The <a href="https://cp-algorithms.com/geometry/manhattan-distance.html">Manhattan-distance</a> threshold
|
* @param reachRange The <a href="https://cp-algorithms.com/geometry/manhattan-distance.html">Manhattan-distance</a> threshold
|
||||||
* from the target position at which the path is considered reached, where {@code 0} requires the exact target position
|
* from the target position at which the path is considered reached, where {@code 0} requires the exact target position
|
||||||
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
||||||
*/
|
*/
|
||||||
@Nullable PathResult findPath(final Entity target, final @NonNegative int reachRange);
|
@Nullable PathResult findPath(Entity target, @NonNegative int reachRange);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates a destination for the Entity to navigate to, and sets it with default speed
|
* Calculates a destination for the Entity to navigate to, and sets it with default speed
|
||||||
@@ -118,7 +119,7 @@ public interface Pathfinder {
|
|||||||
* @param loc Location to navigate to
|
* @param loc Location to navigate to
|
||||||
* @return If the pathfinding was successfully started
|
* @return If the pathfinding was successfully started
|
||||||
*/
|
*/
|
||||||
default boolean moveTo(Location loc) {
|
default boolean moveTo(final Location loc) {
|
||||||
return this.moveTo(loc, 1);
|
return this.moveTo(loc, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,8 +131,8 @@ public interface Pathfinder {
|
|||||||
* @param speed Speed multiplier to navigate at, where 1 is 'normal'
|
* @param speed Speed multiplier to navigate at, where 1 is 'normal'
|
||||||
* @return If the pathfinding was successfully started
|
* @return If the pathfinding was successfully started
|
||||||
*/
|
*/
|
||||||
default boolean moveTo(Location loc, double speed) {
|
default boolean moveTo(final Location loc, final double speed) {
|
||||||
PathResult path = this.findPath(loc);
|
final PathResult path = this.findPath(loc);
|
||||||
return path != null && this.moveTo(path, speed);
|
return path != null && this.moveTo(path, speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,7 +148,7 @@ public interface Pathfinder {
|
|||||||
* @param target the Entity to navigate to
|
* @param target the Entity to navigate to
|
||||||
* @return If the pathfinding was successfully started
|
* @return If the pathfinding was successfully started
|
||||||
*/
|
*/
|
||||||
default boolean moveTo(LivingEntity target) {
|
default boolean moveTo(final LivingEntity target) {
|
||||||
return this.moveTo(target, 1);
|
return this.moveTo(target, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,7 +165,7 @@ public interface Pathfinder {
|
|||||||
* @param speed Speed multiplier to navigate at, where 1 is 'normal'
|
* @param speed Speed multiplier to navigate at, where 1 is 'normal'
|
||||||
* @return If the pathfinding was successfully started
|
* @return If the pathfinding was successfully started
|
||||||
*/
|
*/
|
||||||
default boolean moveTo(LivingEntity target, double speed) {
|
default boolean moveTo(final LivingEntity target, final double speed) {
|
||||||
return this.moveTo((Entity) target, speed);
|
return this.moveTo((Entity) target, speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,7 +181,7 @@ public interface Pathfinder {
|
|||||||
* @param target the Entity to navigate to
|
* @param target the Entity to navigate to
|
||||||
* @return If the pathfinding was successfully started
|
* @return If the pathfinding was successfully started
|
||||||
*/
|
*/
|
||||||
default boolean moveTo(Entity target) {
|
default boolean moveTo(final Entity target) {
|
||||||
return this.moveTo(target, 1);
|
return this.moveTo(target, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,8 +198,8 @@ public interface Pathfinder {
|
|||||||
* @param speed Speed multiplier to navigate at, where 1 is 'normal'
|
* @param speed Speed multiplier to navigate at, where 1 is 'normal'
|
||||||
* @return If the pathfinding was successfully started
|
* @return If the pathfinding was successfully started
|
||||||
*/
|
*/
|
||||||
default boolean moveTo(Entity target, double speed) {
|
default boolean moveTo(final Entity target, final double speed) {
|
||||||
PathResult path = this.findPath(target);
|
final PathResult path = this.findPath(target);
|
||||||
return path != null && this.moveTo(path, speed);
|
return path != null && this.moveTo(path, speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,13 +210,13 @@ public interface Pathfinder {
|
|||||||
* @param path The Path to start following
|
* @param path The Path to start following
|
||||||
* @return If the pathfinding was successfully started
|
* @return If the pathfinding was successfully started
|
||||||
*/
|
*/
|
||||||
default boolean moveTo(PathResult path) {
|
default boolean moveTo(final PathResult path) {
|
||||||
return this.moveTo(path, 1);
|
return this.moveTo(path, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Takes the result of a previous pathfinding calculation and sets it
|
* Takes the result of a previous pathfinding calculation and sets it
|
||||||
* as the active pathfinding,
|
* as the active pathfinding.
|
||||||
*
|
*
|
||||||
* @param path The Path to start following
|
* @param path The Path to start following
|
||||||
* @param speed Speed multiplier to navigate at, where 1 is 'normal'
|
* @param speed Speed multiplier to navigate at, where 1 is 'normal'
|
||||||
@@ -231,7 +232,7 @@ public interface Pathfinder {
|
|||||||
boolean canOpenDoors();
|
boolean canOpenDoors();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows this pathfinder to pass through closed doors, or not
|
* Allows this pathfinder to pass through closed doors, or not.
|
||||||
*
|
*
|
||||||
* @param canOpenDoors if the mob can pass through closed doors, or not
|
* @param canOpenDoors if the mob can pass through closed doors, or not
|
||||||
*/
|
*/
|
||||||
@@ -245,33 +246,33 @@ public interface Pathfinder {
|
|||||||
boolean canPassDoors();
|
boolean canPassDoors();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows this pathfinder to pass through open doors, or not
|
* Allows this pathfinder to pass through open doors, or not.
|
||||||
*
|
*
|
||||||
* @param canPassDoors if the mob can pass through open doors, or not
|
* @param canPassDoors if the mob can pass through open doors, or not
|
||||||
*/
|
*/
|
||||||
void setCanPassDoors(boolean canPassDoors);
|
void setCanPassDoors(boolean canPassDoors);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if this pathfinder assumes that the mob can float
|
* Checks if this pathfinder assumes that the mob can float.
|
||||||
*
|
*
|
||||||
* @return if this pathfinder assumes that the mob can float
|
* @return if this pathfinder assumes that the mob can float
|
||||||
*/
|
*/
|
||||||
boolean canFloat();
|
boolean canFloat();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes this pathfinder assume that the mob can float, or not
|
* Makes this pathfinder assume that the mob can float, or not.
|
||||||
*
|
*
|
||||||
* @param canFloat if the mob can float, or not
|
* @param canFloat if the mob can float, or not
|
||||||
*/
|
*/
|
||||||
void setCanFloat(boolean canFloat);
|
void setCanFloat(boolean canFloat);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the result of a pathfinding calculation
|
* Represents the result of a pathfinding calculation.
|
||||||
*/
|
*/
|
||||||
interface PathResult {
|
interface PathResult {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All currently calculated points to follow along the path to reach the destination location
|
* All currently calculated points to follow along the path to reach the destination location.
|
||||||
* <p>
|
* <p>
|
||||||
* Will return points the entity has already moved past, see {@link #getNextPointIndex()}
|
* Will return points the entity has already moved past, see {@link #getNextPointIndex()}
|
||||||
*
|
*
|
||||||
@@ -280,23 +281,29 @@ public interface Pathfinder {
|
|||||||
List<Location> getPoints();
|
List<Location> getPoints();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Returns the index of the current point along the points returned in {@link #getPoints()} the entity
|
* Gets the index of the current point along the points returned in {@link #getPoints()} the entity
|
||||||
* is trying to reach. This value will be higher than the maximum index of {@link #getPoints()} if this path finding is done.
|
* is trying to reach. This value will be higher than the maximum index of {@link #getPoints()} if this path finding is done.
|
||||||
|
*
|
||||||
|
* @return the index of the next point
|
||||||
*/
|
*/
|
||||||
int getNextPointIndex();
|
int getNextPointIndex();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the next location in the path points the entity is trying to reach.
|
||||||
|
*
|
||||||
* @return The next location in the path points the entity is trying to reach, or null if there is no next point
|
* @return The next location in the path points the entity is trying to reach, or null if there is no next point
|
||||||
*/
|
*/
|
||||||
@Nullable Location getNextPoint();
|
@Nullable Location getNextPoint();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the closest point the path can get to the target location.
|
||||||
|
*
|
||||||
* @return The closest point the path can get to the target location
|
* @return The closest point the path can get to the target location
|
||||||
*/
|
*/
|
||||||
@Nullable Location getFinalPoint();
|
@Nullable Location getFinalPoint();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the final point can be reached
|
* Checks whether the final point can be reached.
|
||||||
*
|
*
|
||||||
* @return whether the final point can be reached
|
* @return whether the final point can be reached
|
||||||
* @see #getFinalPoint()
|
* @see #getFinalPoint()
|
||||||
|
|||||||
@@ -2,10 +2,12 @@ package com.destroystokyo.paper.entity;
|
|||||||
|
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.entity.Mob;
|
import org.bukkit.entity.Mob;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
|
|
||||||
@NullMarked
|
/**
|
||||||
|
* A mob that can perform ranged attacks.
|
||||||
|
*/
|
||||||
public interface RangedEntity extends Mob {
|
public interface RangedEntity extends Mob {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attack the specified entity using a ranged attack.
|
* Attack the specified entity using a ranged attack.
|
||||||
*
|
*
|
||||||
@@ -16,7 +18,7 @@ public interface RangedEntity extends Mob {
|
|||||||
void rangedAttack(LivingEntity target, float charge);
|
void rangedAttack(LivingEntity target, float charge);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets that the Entity is "charging" up an attack, by raising its hands
|
* Sets that the Entity is "charging" up an attack, by raising its hands.
|
||||||
*
|
*
|
||||||
* @param raiseHands Whether the entities hands are raised to charge attack
|
* @param raiseHands Whether the entities hands are raised to charge attack
|
||||||
* @deprecated use {@link #setAggressive(boolean)}
|
* @deprecated use {@link #setAggressive(boolean)}
|
||||||
@@ -25,7 +27,8 @@ public interface RangedEntity extends Mob {
|
|||||||
void setChargingAttack(boolean raiseHands);
|
void setChargingAttack(boolean raiseHands);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alias to {@link LivingEntity#isHandRaised()}, if the entity is charging an attack
|
* Alias to {@link LivingEntity#isHandRaised()}, if the entity is charging an attack.
|
||||||
|
*
|
||||||
* @return If entities hands are raised
|
* @return If entities hands are raised
|
||||||
* @deprecated use {@link #isHandRaised()}
|
* @deprecated use {@link #isHandRaised()}
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ package com.destroystokyo.paper.entity;
|
|||||||
|
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents information about a targeted entity
|
* Represents information about a targeted entity.
|
||||||
|
*
|
||||||
* @deprecated use {@link org.bukkit.util.RayTraceResult}
|
* @deprecated use {@link org.bukkit.util.RayTraceResult}
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "1.19.3")
|
@Deprecated(forRemoval = true, since = "1.19.3")
|
||||||
@@ -13,28 +13,26 @@ public class TargetEntityInfo {
|
|||||||
private final Entity entity;
|
private final Entity entity;
|
||||||
private final Vector hitVec;
|
private final Vector hitVec;
|
||||||
|
|
||||||
public TargetEntityInfo(@NotNull Entity entity, @NotNull Vector hitVec) {
|
public TargetEntityInfo(final Entity entity, final Vector hitVec) {
|
||||||
this.entity = entity;
|
this.entity = entity;
|
||||||
this.hitVec = hitVec;
|
this.hitVec = hitVec;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the entity that is targeted
|
* Get the entity that is targeted.
|
||||||
*
|
*
|
||||||
* @return Targeted entity
|
* @return Targeted entity
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
public Entity getEntity() {
|
public Entity getEntity() {
|
||||||
return entity;
|
return this.entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the position the entity is targeted at
|
* Get the position the entity is targeted at.
|
||||||
*
|
*
|
||||||
* @return Targeted position
|
* @return Targeted position
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
public Vector getHitVector() {
|
public Vector getHitVector() {
|
||||||
return hitVec;
|
return this.hitVec;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,7 +10,7 @@ public enum GoalType {
|
|||||||
JUMP,
|
JUMP,
|
||||||
TARGET,
|
TARGET,
|
||||||
/**
|
/**
|
||||||
* Used to map vanilla goals, that are a behavior goal but don't have a type set...
|
* Used to map vanilla goals, that are a behavior goal but don't have a type set.
|
||||||
*/
|
*/
|
||||||
UNKNOWN_BEHAVIOR,
|
UNKNOWN_BEHAVIOR,
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Entity pathfinding, ranged attack and targeting API.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.entity;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -3,20 +3,28 @@ package com.destroystokyo.paper.entity.villager;
|
|||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import java.util.EnumMap;
|
import java.util.EnumMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.jspecify.annotations.NullMarked;
|
import java.util.Set;
|
||||||
|
import org.jetbrains.annotations.Unmodifiable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A reputation score for a player on a villager.
|
* A reputation score for a player on a villager.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public final class Reputation {
|
public final class Reputation {
|
||||||
|
|
||||||
private final Map<ReputationType, Integer> reputation;
|
private final Map<ReputationType, Integer> reputation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an empty reputation.
|
||||||
|
*/
|
||||||
public Reputation() {
|
public Reputation() {
|
||||||
this(new EnumMap<>(ReputationType.class));
|
this(new EnumMap<>(ReputationType.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a reputation backed by the given map, so changes to the reputation are made to the map.
|
||||||
|
*
|
||||||
|
* @param reputation the reputation values by type
|
||||||
|
*/
|
||||||
public Reputation(final Map<ReputationType, Integer> reputation) {
|
public Reputation(final Map<ReputationType, Integer> reputation) {
|
||||||
Preconditions.checkArgument(reputation != null, "reputation cannot be null");
|
Preconditions.checkArgument(reputation != null, "reputation cannot be null");
|
||||||
this.reputation = reputation;
|
this.reputation = reputation;
|
||||||
@@ -36,7 +44,7 @@ public final class Reputation {
|
|||||||
/**
|
/**
|
||||||
* Sets the reputation value for a specific {@link ReputationType}.
|
* Sets the reputation value for a specific {@link ReputationType}.
|
||||||
*
|
*
|
||||||
* @param type The {@link ReputationType type} of reputation to set.
|
* @param type The {@link ReputationType type} of reputation to set.
|
||||||
* @param value The value of the {@link ReputationType type}.
|
* @param value The value of the {@link ReputationType type}.
|
||||||
*/
|
*/
|
||||||
public void setReputation(final ReputationType type, final int value) {
|
public void setReputation(final ReputationType type, final int value) {
|
||||||
@@ -53,4 +61,13 @@ public final class Reputation {
|
|||||||
public boolean hasReputationSet(final ReputationType type) {
|
public boolean hasReputationSet(final ReputationType type) {
|
||||||
return this.reputation.containsKey(type);
|
return this.reputation.containsKey(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a set of all {@link ReputationType types} that have a reputation value set.
|
||||||
|
*
|
||||||
|
* @return A set of {@link ReputationType types}.
|
||||||
|
*/
|
||||||
|
public @Unmodifiable Set<ReputationType> getReputationsSet() {
|
||||||
|
return Set.copyOf(this.reputation.keySet());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* API for villagers.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.entity.villager;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.destroystokyo.paper.event.block;
|
package com.destroystokyo.paper.event.block;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.Warning;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.enchantments.Enchantment;
|
import org.bukkit.enchantments.Enchantment;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
@@ -23,6 +24,7 @@ import org.jetbrains.annotations.Nullable;
|
|||||||
* @deprecated use {@link org.bukkit.event.block.TNTPrimeEvent}
|
* @deprecated use {@link org.bukkit.event.block.TNTPrimeEvent}
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "1.19.4")
|
@Deprecated(forRemoval = true, since = "1.19.4")
|
||||||
|
@Warning(propagate = false)
|
||||||
public class TNTPrimeEvent extends BlockEvent implements Cancellable {
|
public class TNTPrimeEvent extends BlockEvent implements Cancellable {
|
||||||
|
|
||||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||||
|
|||||||
+2
-2
@@ -7,7 +7,6 @@ import org.bukkit.entity.Player;
|
|||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
import org.bukkit.event.player.PlayerEvent;
|
import org.bukkit.event.player.PlayerEvent;
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fired any time a Brigadier RootCommandNode is generated for a player to inform the client of commands.
|
* Fired any time a Brigadier RootCommandNode is generated for a player to inform the client of commands.
|
||||||
@@ -28,9 +27,10 @@ import org.jspecify.annotations.NullMarked;
|
|||||||
* <p>If your logic is not safe to run asynchronously, only react to the synchronous version.</p>
|
* <p>If your logic is not safe to run asynchronously, only react to the synchronous version.</p>
|
||||||
*
|
*
|
||||||
* <p>This is a draft/experimental API and is subject to change.</p>
|
* <p>This is a draft/experimental API and is subject to change.</p>
|
||||||
|
*
|
||||||
|
* @param <S> the type of the command source
|
||||||
*/
|
*/
|
||||||
@ApiStatus.Experimental
|
@ApiStatus.Experimental
|
||||||
@NullMarked
|
|
||||||
public class AsyncPlayerSendCommandsEvent<S extends CommandSourceStack> extends PlayerEvent {
|
public class AsyncPlayerSendCommandsEvent<S extends CommandSourceStack> extends PlayerEvent {
|
||||||
|
|
||||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||||
|
|||||||
+4
-2
@@ -7,14 +7,14 @@ import org.bukkit.event.Cancellable;
|
|||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
import org.bukkit.event.player.PlayerEvent;
|
import org.bukkit.event.player.PlayerEvent;
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when sending {@link Suggestions} to the client. Will be called asynchronously if a plugin
|
* Called when sending {@link Suggestions} to the client. Will be called asynchronously if a plugin
|
||||||
* marks the {@link com.destroystokyo.paper.event.server.AsyncTabCompleteEvent} event handled asynchronously,
|
* marks the {@link com.destroystokyo.paper.event.server.AsyncTabCompleteEvent} event handled asynchronously,
|
||||||
* otherwise called synchronously.
|
* otherwise called synchronously.
|
||||||
|
* <p>
|
||||||
|
* If the suggestions are empty after this event has been called, nothing will be sent to the client.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public class AsyncPlayerSendSuggestionsEvent extends PlayerEvent implements Cancellable {
|
public class AsyncPlayerSendSuggestionsEvent extends PlayerEvent implements Cancellable {
|
||||||
|
|
||||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||||
@@ -51,6 +51,8 @@ public class AsyncPlayerSendSuggestionsEvent extends PlayerEvent implements Canc
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the suggestions to be sent to client.
|
* Sets the suggestions to be sent to client.
|
||||||
|
* <p>
|
||||||
|
* Empty suggestions are never sent to the client.
|
||||||
*
|
*
|
||||||
* @param suggestions suggestions
|
* @param suggestions suggestions
|
||||||
*/
|
*/
|
||||||
|
|||||||
+21
-11
@@ -1,6 +1,7 @@
|
|||||||
package com.destroystokyo.paper.event.brigadier;
|
package com.destroystokyo.paper.event.brigadier;
|
||||||
|
|
||||||
import com.destroystokyo.paper.brigadier.BukkitBrigadierCommand;
|
import com.destroystokyo.paper.brigadier.BukkitBrigadierCommand;
|
||||||
|
import com.destroystokyo.paper.brigadier.BukkitBrigadierCommandSource;
|
||||||
import com.mojang.brigadier.tree.ArgumentCommandNode;
|
import com.mojang.brigadier.tree.ArgumentCommandNode;
|
||||||
import com.mojang.brigadier.tree.LiteralCommandNode;
|
import com.mojang.brigadier.tree.LiteralCommandNode;
|
||||||
import com.mojang.brigadier.tree.RootCommandNode;
|
import com.mojang.brigadier.tree.RootCommandNode;
|
||||||
@@ -9,7 +10,7 @@ import org.bukkit.command.Command;
|
|||||||
import org.bukkit.event.Cancellable;
|
import org.bukkit.event.Cancellable;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
import org.bukkit.event.server.ServerEvent;
|
import org.bukkit.event.server.ServerEvent;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fired anytime the server synchronizes Bukkit commands to Brigadier.
|
* Fired anytime the server synchronizes Bukkit commands to Brigadier.
|
||||||
@@ -18,17 +19,19 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
* This is done at Plugin Enable time after commands have been registered, but may also
|
* This is done at Plugin Enable time after commands have been registered, but may also
|
||||||
* run at a later point in the server lifetime due to plugins, a server reload, etc.</p>
|
* run at a later point in the server lifetime due to plugins, a server reload, etc.</p>
|
||||||
*
|
*
|
||||||
* @deprecated For removal, use the new brigadier api.
|
* @param <S> the type of the command source
|
||||||
|
* @deprecated this event has been superseded by the Commands API and will be removed in a future release.
|
||||||
|
* Listen to {@link io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents#COMMANDS} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "1.20.6")
|
@Deprecated(since = "1.20.6")
|
||||||
@Warning(reason = "This event has been superseded by the Commands API and will be removed in a future release. Listen to LifecycleEvents.COMMANDS instead.", value = true)
|
@Warning(value = true, propagate = false)
|
||||||
public class CommandRegisteredEvent<S extends com.destroystokyo.paper.brigadier.BukkitBrigadierCommandSource> extends ServerEvent implements Cancellable {
|
public class CommandRegisteredEvent<S extends BukkitBrigadierCommandSource> extends ServerEvent implements Cancellable {
|
||||||
|
|
||||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||||
|
|
||||||
private final String commandLabel;
|
private final String commandLabel;
|
||||||
private final Command command;
|
private final Command command;
|
||||||
private final com.destroystokyo.paper.brigadier.BukkitBrigadierCommand<S> brigadierCommand;
|
private final BukkitBrigadierCommand<S> brigadierCommand;
|
||||||
private final RootCommandNode<S> root;
|
private final RootCommandNode<S> root;
|
||||||
private final ArgumentCommandNode<S, String> defaultArgs;
|
private final ArgumentCommandNode<S, String> defaultArgs;
|
||||||
private LiteralCommandNode<S> literal;
|
private LiteralCommandNode<S> literal;
|
||||||
@@ -36,7 +39,15 @@ public class CommandRegisteredEvent<S extends com.destroystokyo.paper.brigadier.
|
|||||||
|
|
||||||
private boolean cancelled;
|
private boolean cancelled;
|
||||||
|
|
||||||
public CommandRegisteredEvent(String commandLabel, com.destroystokyo.paper.brigadier.BukkitBrigadierCommand<S> brigadierCommand, Command command, RootCommandNode<S> root, LiteralCommandNode<S> literal, ArgumentCommandNode<S, String> defaultArgs) {
|
@ApiStatus.Internal
|
||||||
|
public CommandRegisteredEvent(
|
||||||
|
final String commandLabel,
|
||||||
|
final BukkitBrigadierCommand<S> brigadierCommand,
|
||||||
|
final Command command,
|
||||||
|
final RootCommandNode<S> root,
|
||||||
|
final LiteralCommandNode<S> literal,
|
||||||
|
final ArgumentCommandNode<S, String> defaultArgs
|
||||||
|
) {
|
||||||
this.commandLabel = commandLabel;
|
this.commandLabel = commandLabel;
|
||||||
this.brigadierCommand = brigadierCommand;
|
this.brigadierCommand = brigadierCommand;
|
||||||
this.command = command;
|
this.command = command;
|
||||||
@@ -109,15 +120,15 @@ public class CommandRegisteredEvent<S extends com.destroystokyo.paper.brigadier.
|
|||||||
*
|
*
|
||||||
* @param literal new node
|
* @param literal new node
|
||||||
*/
|
*/
|
||||||
public void setLiteral(LiteralCommandNode<S> literal) {
|
public void setLiteral(final LiteralCommandNode<S> literal) {
|
||||||
this.literal = literal;
|
this.literal = literal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether this command should is treated as "raw".
|
* Gets whether this command should is treated as "raw".
|
||||||
*
|
*
|
||||||
* @see #setRawCommand(boolean)
|
|
||||||
* @return whether this command is treated as "raw"
|
* @return whether this command is treated as "raw"
|
||||||
|
* @see #setRawCommand(boolean)
|
||||||
*/
|
*/
|
||||||
public boolean isRawCommand() {
|
public boolean isRawCommand() {
|
||||||
return this.rawCommand;
|
return this.rawCommand;
|
||||||
@@ -151,16 +162,15 @@ public class CommandRegisteredEvent<S extends com.destroystokyo.paper.brigadier.
|
|||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(final boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@Override
|
||||||
public HandlerList getHandlers() {
|
public HandlerList getHandlers() {
|
||||||
return HANDLER_LIST;
|
return HANDLER_LIST;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
|
||||||
public static HandlerList getHandlerList() {
|
public static HandlerList getHandlerList() {
|
||||||
return HANDLER_LIST;
|
return HANDLER_LIST;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Events relating to the Brigadier command tree, such as the commands and suggestions sent to clients.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.event.brigadier;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
+2
@@ -1,5 +1,6 @@
|
|||||||
package com.destroystokyo.paper.event.entity;
|
package com.destroystokyo.paper.event.entity;
|
||||||
|
|
||||||
|
import org.bukkit.Warning;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.Projectile;
|
import org.bukkit.entity.Projectile;
|
||||||
import org.bukkit.event.Cancellable;
|
import org.bukkit.event.Cancellable;
|
||||||
@@ -17,6 +18,7 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
* @deprecated Deprecated, use {@link org.bukkit.event.entity.ProjectileHitEvent} and check if there is a hit entity
|
* @deprecated Deprecated, use {@link org.bukkit.event.entity.ProjectileHitEvent} and check if there is a hit entity
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "1.19.3")
|
@Deprecated(since = "1.19.3")
|
||||||
|
@Warning(propagate = false)
|
||||||
public class ProjectileCollideEvent extends EntityEvent implements Cancellable {
|
public class ProjectileCollideEvent extends EntityEvent implements Cancellable {
|
||||||
|
|
||||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||||
|
|||||||
+4
-6
@@ -5,24 +5,22 @@ import org.bukkit.inventory.GrindstoneInventory;
|
|||||||
import org.bukkit.inventory.InventoryView;
|
import org.bukkit.inventory.InventoryView;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jspecify.annotations.Nullable;
|
||||||
import org.jetbrains.annotations.Nullable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when an item is put in a slot for grinding in a Grindstone
|
* Called when an item is put in a slot for grinding in a Grindstone.
|
||||||
*
|
*
|
||||||
* @deprecated use {@link org.bukkit.event.inventory.PrepareGrindstoneEvent}
|
* @deprecated use {@link org.bukkit.event.inventory.PrepareGrindstoneEvent}
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "1.16.1")
|
@Deprecated(since = "1.16.1")
|
||||||
@Warning
|
@Warning(propagate = false)
|
||||||
public class PrepareGrindstoneEvent extends PrepareResultEvent {
|
public class PrepareGrindstoneEvent extends PrepareResultEvent {
|
||||||
|
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
public PrepareGrindstoneEvent(@NotNull InventoryView inventory, @Nullable ItemStack result) {
|
public PrepareGrindstoneEvent(final InventoryView inventory, final @Nullable ItemStack result) {
|
||||||
super(inventory, result);
|
super(inventory, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
|
||||||
@Override
|
@Override
|
||||||
public GrindstoneInventory getInventory() {
|
public GrindstoneInventory getInventory() {
|
||||||
return (GrindstoneInventory) super.getInventory();
|
return (GrindstoneInventory) super.getInventory();
|
||||||
|
|||||||
+1
-3
@@ -4,13 +4,11 @@ import org.bukkit.event.inventory.PrepareInventoryResultEvent;
|
|||||||
import org.bukkit.inventory.InventoryView;
|
import org.bukkit.inventory.InventoryView;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when an item is put in an inventory containing a result slot
|
* Called when an item is put in an inventory containing a result slot.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public class PrepareResultEvent extends PrepareInventoryResultEvent {
|
public class PrepareResultEvent extends PrepareInventoryResultEvent {
|
||||||
|
|
||||||
// HandlerList on PrepareInventoryResultEvent to ensure api compat
|
// HandlerList on PrepareInventoryResultEvent to ensure api compat
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Inventory events.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.event.inventory;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.destroystokyo.paper.event.player;
|
package com.destroystokyo.paper.event.player;
|
||||||
|
|
||||||
|
import org.bukkit.Warning;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
import org.bukkit.event.player.PlayerEvent;
|
import org.bukkit.event.player.PlayerEvent;
|
||||||
@@ -11,6 +12,7 @@ import org.jetbrains.annotations.Nullable;
|
|||||||
* @deprecated Not used
|
* @deprecated Not used
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "1.16.4", forRemoval = true)
|
@Deprecated(since = "1.16.4", forRemoval = true)
|
||||||
|
@Warning(value = true, propagate = false)
|
||||||
public class IllegalPacketEvent extends PlayerEvent {
|
public class IllegalPacketEvent extends PlayerEvent {
|
||||||
|
|
||||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||||
|
|||||||
+2
@@ -1,5 +1,6 @@
|
|||||||
package com.destroystokyo.paper.event.player;
|
package com.destroystokyo.paper.event.player;
|
||||||
|
|
||||||
|
import org.bukkit.Warning;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.Cancellable;
|
import org.bukkit.event.Cancellable;
|
||||||
@@ -19,6 +20,7 @@ import org.jspecify.annotations.NullMarked;
|
|||||||
*/
|
*/
|
||||||
@NullMarked
|
@NullMarked
|
||||||
@Deprecated(since = "26.1", forRemoval = true)
|
@Deprecated(since = "26.1", forRemoval = true)
|
||||||
|
@Warning(value = true, propagate = false)
|
||||||
public class PlayerAttackEntityCooldownResetEvent extends PlayerEvent implements Cancellable {
|
public class PlayerAttackEntityCooldownResetEvent extends PlayerEvent implements Cancellable {
|
||||||
|
|
||||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||||
|
|||||||
+16
-4
@@ -1,6 +1,8 @@
|
|||||||
package com.destroystokyo.paper.event.player;
|
package com.destroystokyo.paper.event.player;
|
||||||
|
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
|
import java.net.InetSocketAddress;
|
||||||
|
import java.net.SocketAddress;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import org.bukkit.event.Event;
|
import org.bukkit.event.Event;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
@@ -41,10 +43,10 @@ public class PlayerConnectionCloseEvent extends Event {
|
|||||||
|
|
||||||
private final UUID playerUniqueId;
|
private final UUID playerUniqueId;
|
||||||
private final String playerName;
|
private final String playerName;
|
||||||
private final InetAddress ipAddress;
|
private final SocketAddress ipAddress;
|
||||||
|
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
public PlayerConnectionCloseEvent(final UUID playerUniqueId, final String playerName, final InetAddress ipAddress, final boolean async) {
|
public PlayerConnectionCloseEvent(final UUID playerUniqueId, final String playerName, final SocketAddress ipAddress, final boolean async) {
|
||||||
super(async);
|
super(async);
|
||||||
this.playerUniqueId = playerUniqueId;
|
this.playerUniqueId = playerUniqueId;
|
||||||
this.playerName = playerName;
|
this.playerName = playerName;
|
||||||
@@ -66,10 +68,20 @@ public class PlayerConnectionCloseEvent extends Event {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the player's IP address.
|
* Returns the player's socket address.
|
||||||
|
*/
|
||||||
|
public SocketAddress getSocketAddress() {
|
||||||
|
return this.ipAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the player's IP address, or the loopback address if the player
|
||||||
|
* is connecting through a Unix domain socket and the proxy has not
|
||||||
|
* forwarded the player's IP address yet.
|
||||||
*/
|
*/
|
||||||
public InetAddress getIpAddress() {
|
public InetAddress getIpAddress() {
|
||||||
return this.ipAddress;
|
if (this.ipAddress instanceof InetSocketAddress inet) return inet.getAddress();
|
||||||
|
return InetAddress.getLoopbackAddress();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ public class PaperServerListPingEvent extends ServerListPingEvent implements Can
|
|||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
public PaperServerListPingEvent(@NotNull StatusClient client, @NotNull net.kyori.adventure.text.Component motd, int numPlayers, int maxPlayers,
|
public PaperServerListPingEvent(@NotNull StatusClient client, @NotNull net.kyori.adventure.text.Component motd, int numPlayers, int maxPlayers,
|
||||||
@NotNull String version, int protocolVersion, @Nullable CachedServerIcon favicon) {
|
@NotNull String version, int protocolVersion, @Nullable CachedServerIcon favicon) {
|
||||||
super("", client.getAddress().getAddress(), motd, numPlayers, maxPlayers);
|
super("", client.getSocketAddress(), motd, numPlayers, maxPlayers);
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.numPlayers = numPlayers;
|
this.numPlayers = numPlayers;
|
||||||
this.version = version;
|
this.version = version;
|
||||||
|
|||||||
+15
-12
@@ -2,75 +2,78 @@ package com.destroystokyo.paper.inventory.meta;
|
|||||||
|
|
||||||
import org.bukkit.inventory.meta.ItemMeta;
|
import org.bukkit.inventory.meta.ItemMeta;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents the meta of an armor stand item, which controls the armor stand that is spawned from it.
|
||||||
|
*/
|
||||||
public interface ArmorStandMeta extends ItemMeta {
|
public interface ArmorStandMeta extends ItemMeta {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether the ArmorStand should be invisible when spawned
|
* Gets whether the ArmorStand should be invisible when spawned.
|
||||||
*
|
*
|
||||||
* @return true if this should be invisible
|
* @return true if this should be invisible
|
||||||
*/
|
*/
|
||||||
boolean isInvisible();
|
boolean isInvisible();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether this ArmorStand should have no base plate when spawned
|
* Gets whether this ArmorStand should have no base plate when spawned.
|
||||||
*
|
*
|
||||||
* @return true if it will not have a base plate
|
* @return true if it will not have a base plate
|
||||||
*/
|
*/
|
||||||
boolean hasNoBasePlate();
|
boolean hasNoBasePlate();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether this ArmorStand should show arms when spawned
|
* Gets whether this ArmorStand should show arms when spawned.
|
||||||
*
|
*
|
||||||
* @return true if it will show arms
|
* @return true if it will show arms
|
||||||
*/
|
*/
|
||||||
boolean shouldShowArms();
|
boolean shouldShowArms();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether this ArmorStand will be small when spawned
|
* Gets whether this ArmorStand will be small when spawned.
|
||||||
*
|
*
|
||||||
* @return true if it will be small
|
* @return true if it will be small
|
||||||
*/
|
*/
|
||||||
boolean isSmall();
|
boolean isSmall();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether this ArmorStand will be a marker when spawned
|
* Gets whether this ArmorStand will be a marker when spawned.
|
||||||
* The exact details of this flag are an implementation detail
|
* The exact details of this flag are an implementation detail.
|
||||||
*
|
*
|
||||||
* @return true if it will be a marker
|
* @return true if it will be a marker
|
||||||
*/
|
*/
|
||||||
boolean isMarker();
|
boolean isMarker();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets that this ArmorStand should be invisible when spawned
|
* Sets that this ArmorStand should be invisible when spawned.
|
||||||
*
|
*
|
||||||
* @param invisible true if set invisible
|
* @param invisible true if set invisible
|
||||||
*/
|
*/
|
||||||
void setInvisible(boolean invisible);
|
void setInvisible(boolean invisible);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets that this ArmorStand should have no base plate when spawned
|
* Sets that this ArmorStand should have no base plate when spawned.
|
||||||
*
|
*
|
||||||
* @param noBasePlate true if no base plate
|
* @param noBasePlate true if no base plate
|
||||||
*/
|
*/
|
||||||
void setNoBasePlate(boolean noBasePlate);
|
void setNoBasePlate(boolean noBasePlate);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets that this ArmorStand should show arms when spawned
|
* Sets that this ArmorStand should show arms when spawned.
|
||||||
*
|
*
|
||||||
* @param showArms true if show arms
|
* @param showArms true if show arms
|
||||||
*/
|
*/
|
||||||
void setShowArms(boolean showArms);
|
void setShowArms(boolean showArms);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets that this ArmorStand should be small when spawned
|
* Sets that this ArmorStand should be small when spawned.
|
||||||
*
|
*
|
||||||
* @param small true if small
|
* @param small true if small
|
||||||
*/
|
*/
|
||||||
void setSmall(boolean small);
|
void setSmall(boolean small);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets that this ArmorStand should be a marker when spawned
|
* Sets that this ArmorStand should be a marker when spawned.
|
||||||
* The exact details of this flag are an implementation detail
|
* The exact details of this flag are an implementation detail.
|
||||||
*
|
*
|
||||||
* @param marker true if a marker
|
* @param marker true if a marker
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Item meta types.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.inventory.meta;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -1,13 +1,12 @@
|
|||||||
package com.destroystokyo.paper.network;
|
package com.destroystokyo.paper.network;
|
||||||
|
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import org.jspecify.annotations.NullMarked;
|
import java.net.SocketAddress;
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a client connected to the server.
|
* Represents a client connected to the server.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public interface NetworkClient {
|
public interface NetworkClient {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -15,6 +14,15 @@ public interface NetworkClient {
|
|||||||
*
|
*
|
||||||
* @return The client's socket address
|
* @return The client's socket address
|
||||||
*/
|
*/
|
||||||
|
SocketAddress getSocketAddress();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an instance of {@link InetSocketAddress} associated with the
|
||||||
|
* client's socket address.
|
||||||
|
*
|
||||||
|
* @return The client's {@link InetSocketAddress}, or the loopback address
|
||||||
|
* if this is a Unix domain socket connection
|
||||||
|
*/
|
||||||
InetSocketAddress getAddress();
|
InetSocketAddress getAddress();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* API for clients connecting to the server.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.network;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -8,7 +8,6 @@ import net.kyori.adventure.text.object.ObjectContents;
|
|||||||
import net.kyori.adventure.text.object.ObjectContentsLike;
|
import net.kyori.adventure.text.object.ObjectContentsLike;
|
||||||
import net.kyori.adventure.text.object.PlayerHeadObjectContents;
|
import net.kyori.adventure.text.object.PlayerHeadObjectContents;
|
||||||
import org.bukkit.profile.PlayerTextures;
|
import org.bukkit.profile.PlayerTextures;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import static net.kyori.adventure.text.object.PlayerHeadObjectContents.property;
|
import static net.kyori.adventure.text.object.PlayerHeadObjectContents.property;
|
||||||
@@ -16,40 +15,42 @@ import static net.kyori.adventure.text.object.PlayerHeadObjectContents.property;
|
|||||||
/**
|
/**
|
||||||
* Represents a players profile for the game, such as UUID, Name, and textures.
|
* Represents a players profile for the game, such as UUID, Name, and textures.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerHeadObjectContents.SkinSource, ObjectContentsLike {
|
public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerHeadObjectContents.SkinSource, ObjectContentsLike {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the name of this profile.
|
||||||
|
*
|
||||||
* @return The players name, if set
|
* @return The players name, if set
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable String getName();
|
||||||
String getName();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets this profiles Name
|
* Sets this profiles Name.
|
||||||
*
|
*
|
||||||
* @param name The new Name
|
* @param name The new Name
|
||||||
* @return The previous Name
|
* @return The previous Name
|
||||||
|
* @deprecated create a new profile with {@link org.bukkit.Server#createProfile(UUID, String)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "1.18.1")
|
@Deprecated(forRemoval = true, since = "1.18.1")
|
||||||
String setName(@Nullable String name);
|
@Nullable String setName(@Nullable String name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the unique identifier of this profile.
|
||||||
|
*
|
||||||
* @return The players unique identifier, if set
|
* @return The players unique identifier, if set
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable UUID getId();
|
||||||
UUID getId();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets this profiles UUID
|
* Sets this profiles UUID.
|
||||||
*
|
*
|
||||||
* @param uuid The new UUID
|
* @param uuid The new UUID
|
||||||
* @return The previous UUID
|
* @return The previous UUID
|
||||||
|
* @deprecated create a new profile with {@link org.bukkit.Server#createProfile(UUID, String)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "1.18.1")
|
@Deprecated(forRemoval = true, since = "1.18.1")
|
||||||
@Nullable
|
@Nullable UUID setId(@Nullable UUID uuid);
|
||||||
UUID setId(@Nullable UUID uuid);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the {@link PlayerTextures} of this profile.
|
* Gets the {@link PlayerTextures} of this profile.
|
||||||
@@ -65,19 +66,21 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
* Copies the given textures.
|
* Copies the given textures.
|
||||||
*
|
*
|
||||||
* @param textures the textures to copy, or {@code null} to clear the
|
* @param textures the textures to copy, or {@code null} to clear the
|
||||||
* textures
|
* textures
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
void setTextures(@Nullable PlayerTextures textures);
|
void setTextures(@Nullable PlayerTextures textures);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the properties of this profile.
|
||||||
|
*
|
||||||
* @return A Mutable set of this player's properties, such as textures.
|
* @return A Mutable set of this player's properties, such as textures.
|
||||||
* Values specified here are subject to implementation details.
|
* Values specified here are subject to implementation details.
|
||||||
*/
|
*/
|
||||||
Set<ProfileProperty> getProperties();
|
Set<ProfileProperty> getProperties();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the Profile has the specified property
|
* Check if the Profile has the specified property.
|
||||||
*
|
*
|
||||||
* @param property Property name to check
|
* @param property Property name to check
|
||||||
* @return If the property is set
|
* @return If the property is set
|
||||||
@@ -85,7 +88,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
boolean hasProperty(@Nullable String property);
|
boolean hasProperty(@Nullable String property);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets a property. If the property already exists, the previous one will be replaced
|
* Sets a property. If the property already exists, the previous one will be replaced.
|
||||||
*
|
*
|
||||||
* @param property Property to set.
|
* @param property Property to set.
|
||||||
* @throws IllegalArgumentException if setting the property results in more than 16 properties
|
* @throws IllegalArgumentException if setting the property results in more than 16 properties
|
||||||
@@ -93,7 +96,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
void setProperty(ProfileProperty property);
|
void setProperty(ProfileProperty property);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets multiple properties. If any of the set properties already exist, it will be replaced
|
* Sets multiple properties. If any of the set properties already exist, it will be replaced.
|
||||||
*
|
*
|
||||||
* @param properties The properties to set
|
* @param properties The properties to set
|
||||||
* @throws IllegalArgumentException if the number of properties exceeds 16
|
* @throws IllegalArgumentException if the number of properties exceeds 16
|
||||||
@@ -101,7 +104,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
void setProperties(Collection<ProfileProperty> properties);
|
void setProperties(Collection<ProfileProperty> properties);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a specific property from this profile
|
* Removes a specific property from this profile.
|
||||||
*
|
*
|
||||||
* @param property The property to remove
|
* @param property The property to remove
|
||||||
* @return If a property was removed
|
* @return If a property was removed
|
||||||
@@ -109,7 +112,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
boolean removeProperty(@Nullable String property);
|
boolean removeProperty(@Nullable String property);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a specific property from this profile
|
* Removes a specific property from this profile.
|
||||||
*
|
*
|
||||||
* @param property The property to remove
|
* @param property The property to remove
|
||||||
* @return If a property was removed
|
* @return If a property was removed
|
||||||
@@ -119,7 +122,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all properties in the collection
|
* Removes all properties in the collection.
|
||||||
*
|
*
|
||||||
* @param properties The properties to remove
|
* @param properties The properties to remove
|
||||||
* @return If any property was removed
|
* @return If any property was removed
|
||||||
@@ -135,11 +138,13 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears all properties on this profile
|
* Clears all properties on this profile.
|
||||||
*/
|
*/
|
||||||
void clearProperties();
|
void clearProperties();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Checks whether this profile has both a unique identifier and a name.
|
||||||
|
*
|
||||||
* @return If the profile is now complete (has UUID and Name)
|
* @return If the profile is now complete (has UUID and Name)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@@ -203,7 +208,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
* <p>
|
* <p>
|
||||||
* Optionally will also fill textures.
|
* Optionally will also fill textures.
|
||||||
*
|
*
|
||||||
* @param textures controls if we should fill the profile with texture properties
|
* @param textures controls if we should fill the profile with texture properties
|
||||||
* @param onlineMode Treat this server as online mode or not
|
* @param onlineMode Treat this server as online mode or not
|
||||||
* @return If the profile is now complete (has UUID and Name) (if you get rate limited, this operation may fail)
|
* @return If the profile is now complete (has UUID and Name) (if you get rate limited, this operation may fail)
|
||||||
*/
|
*/
|
||||||
@@ -216,7 +221,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
* properties (name, unique id, textures, etc.), and updates existing
|
* properties (name, unique id, textures, etc.), and updates existing
|
||||||
* properties (e.g. name, textures, etc.) to their official and up-to-date
|
* properties (e.g. name, textures, etc.) to their official and up-to-date
|
||||||
* values. This operation does not alter the current profile, but produces a
|
* values. This operation does not alter the current profile, but produces a
|
||||||
* new updated {@link PlayerProfile}.
|
* new updated {@code PlayerProfile}.
|
||||||
* <p>
|
* <p>
|
||||||
* If no player exists for the unique id or name of this profile, this
|
* If no player exists for the unique id or name of this profile, this
|
||||||
* operation yields a profile that is equal to the current profile, which
|
* operation yields a profile that is equal to the current profile, which
|
||||||
@@ -241,7 +246,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
CompletableFuture<PlayerProfile> update();
|
CompletableFuture<PlayerProfile> update();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether this Profile has textures associated to it
|
* Whether this Profile has textures associated to it.
|
||||||
*
|
*
|
||||||
* @return If it has a textures property
|
* @return If it has a textures property
|
||||||
*/
|
*/
|
||||||
@@ -262,6 +267,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerH
|
|||||||
return ObjectContents.playerHead(this);
|
return ObjectContents.playerHead(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("UnstableApiUsage")
|
||||||
@Override
|
@Override
|
||||||
default void applySkinToPlayerHeadContents(final PlayerHeadObjectContents.Builder builder) {
|
default void applySkinToPlayerHeadContents(final PlayerHeadObjectContents.Builder builder) {
|
||||||
if (this.getProperties().isEmpty()) {
|
if (this.getProperties().isEmpty()) {
|
||||||
|
|||||||
@@ -2,23 +2,34 @@ package com.destroystokyo.paper.profile;
|
|||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a property on a {@link PlayerProfile}
|
* Represents a property on a {@link PlayerProfile}.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public final class ProfileProperty {
|
public final class ProfileProperty {
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String value;
|
private final String value;
|
||||||
private final @Nullable String signature;
|
private final @Nullable String signature;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an unsigned property.
|
||||||
|
*
|
||||||
|
* @param name the property name
|
||||||
|
* @param value the property value
|
||||||
|
*/
|
||||||
public ProfileProperty(final String name, final String value) {
|
public ProfileProperty(final String name, final String value) {
|
||||||
this(name, value, null);
|
this(name, value, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a property.
|
||||||
|
*
|
||||||
|
* @param name the property name, at most 64 characters
|
||||||
|
* @param value the property value, at most 32767 characters
|
||||||
|
* @param signature the signature, at most 1024 characters, or {@code null} if unsigned
|
||||||
|
*/
|
||||||
public ProfileProperty(final String name, final String value, final @Nullable String signature) {
|
public ProfileProperty(final String name, final String value, final @Nullable String signature) {
|
||||||
this.name = Preconditions.checkNotNull(name, "ProfileProperty name can not be null");
|
this.name = Preconditions.checkNotNull(name, "ProfileProperty name can not be null");
|
||||||
this.value = Preconditions.checkNotNull(value, "ProfileProperty value can not be null");
|
this.value = Preconditions.checkNotNull(value, "ProfileProperty value can not be null");
|
||||||
@@ -29,6 +40,8 @@ public final class ProfileProperty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the name of this property.
|
||||||
|
*
|
||||||
* @return The property name, ie "textures"
|
* @return The property name, ie "textures"
|
||||||
*/
|
*/
|
||||||
public String getName() {
|
public String getName() {
|
||||||
@@ -36,6 +49,8 @@ public final class ProfileProperty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the value of this property.
|
||||||
|
*
|
||||||
* @return The property value, likely to be base64 encoded
|
* @return The property value, likely to be base64 encoded
|
||||||
*/
|
*/
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
@@ -43,13 +58,17 @@ public final class ProfileProperty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return A signature from Mojang for signed properties
|
* Gets the signature of this property.
|
||||||
|
*
|
||||||
|
* @return A signature for signed properties
|
||||||
*/
|
*/
|
||||||
public @Nullable String getSignature() {
|
public @Nullable String getSignature() {
|
||||||
return this.signature;
|
return this.signature;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Checks whether this property is signed.
|
||||||
|
*
|
||||||
* @return If this property has a signature or not
|
* @return If this property has a signature or not
|
||||||
*/
|
*/
|
||||||
public boolean isSigned() {
|
public boolean isSigned() {
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* API for player profiles and their properties.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.profile;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -1,15 +1,18 @@
|
|||||||
package com.destroystokyo.paper.util;
|
package com.destroystokyo.paper.util;
|
||||||
|
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Rethrows checked exceptions without declaring them.
|
||||||
|
*
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
@NullMarked
|
|
||||||
public final class SneakyThrow {
|
public final class SneakyThrow {
|
||||||
|
|
||||||
|
private SneakyThrow() {
|
||||||
|
}
|
||||||
|
|
||||||
public static void sneaky(final Throwable exception) {
|
public static void sneaky(final Throwable exception) {
|
||||||
SneakyThrow.throwSneaky(exception);
|
SneakyThrow.throwSneaky(exception);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,13 +4,14 @@ import net.kyori.adventure.text.Component;
|
|||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
|
|
||||||
@NullMarked
|
/**
|
||||||
|
* Provides the message shown by the {@code /version} command about whether the server is up to date.
|
||||||
|
*/
|
||||||
public interface VersionFetcher {
|
public interface VersionFetcher {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Amount of time to cache results for in milliseconds
|
* Amount of time to cache results for in milliseconds.
|
||||||
* <p>
|
* <p>
|
||||||
* Negative values will never cache.
|
* Negative values will never cache.
|
||||||
*
|
*
|
||||||
@@ -36,11 +37,13 @@ public interface VersionFetcher {
|
|||||||
* @deprecated {@code serverVersion} is not required
|
* @deprecated {@code serverVersion} is not required
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default Component getVersionMessage(String serverVersion) {
|
default Component getVersionMessage(final String serverVersion) {
|
||||||
return getVersionMessage();
|
return this.getVersionMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* A version fetcher used when the server does not provide one.
|
||||||
|
*
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Miscellaneous Paper utilities.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.util;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -5,19 +5,25 @@ import java.util.logging.Level;
|
|||||||
import java.util.logging.LogManager;
|
import java.util.logging.LogManager;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import org.bukkit.plugin.PluginDescriptionFile;
|
import org.bukkit.plugin.PluginDescriptionFile;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prevents plugins (e.g. Essentials) from changing the parent of the plugin logger.
|
* Prevents plugins (e.g. Essentials) from changing the parent of the plugin logger.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
public final class PaperPluginLogger extends Logger {
|
||||||
public class PaperPluginLogger extends Logger {
|
|
||||||
|
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true)
|
||||||
public static Logger getLogger(final PluginDescriptionFile description) {
|
public static Logger getLogger(final PluginDescriptionFile description) {
|
||||||
return getLogger((PluginMeta) description);
|
return getLogger((PluginMeta) description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a logger for the given plugin and registers it with the {@link LogManager}.
|
||||||
|
* <p>
|
||||||
|
* If a logger with the same name is already registered, that logger is returned instead.
|
||||||
|
*
|
||||||
|
* @param meta the meta of the plugin to create the logger for
|
||||||
|
* @return the logger for the plugin
|
||||||
|
*/
|
||||||
public static Logger getLogger(final PluginMeta meta) {
|
public static Logger getLogger(final PluginMeta meta) {
|
||||||
Logger logger = new PaperPluginLogger(meta);
|
Logger logger = new PaperPluginLogger(meta);
|
||||||
if (!LogManager.getLogManager().addLogger(logger)) {
|
if (!LogManager.getLogManager().addLogger(logger)) {
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Miscellaneous Paper utilities.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package com.destroystokyo.paper.utils;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -5,14 +5,17 @@ import com.destroystokyo.paper.util.VersionFetcher;
|
|||||||
import io.papermc.paper.command.brigadier.CommandSourceStack;
|
import io.papermc.paper.command.brigadier.CommandSourceStack;
|
||||||
import io.papermc.paper.datacomponent.item.ResolvableProfile;
|
import io.papermc.paper.datacomponent.item.ResolvableProfile;
|
||||||
import io.papermc.paper.entity.poi.PoiType;
|
import io.papermc.paper.entity.poi.PoiType;
|
||||||
|
import io.papermc.paper.persistence.PersistentDataKey;
|
||||||
import io.papermc.paper.plugin.lifecycle.event.LifecycleEventManager;
|
import io.papermc.paper.plugin.lifecycle.event.LifecycleEventManager;
|
||||||
import io.papermc.paper.world.damagesource.CombatEntry;
|
import io.papermc.paper.world.damagesource.CombatEntry;
|
||||||
import io.papermc.paper.world.damagesource.FallLocationType;
|
import io.papermc.paper.world.damagesource.FallLocationType;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ServiceLoader;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.function.BooleanSupplier;
|
import java.util.function.BooleanSupplier;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.function.Predicate;
|
import java.util.function.Predicate;
|
||||||
|
import net.kyori.adventure.key.Key;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.flattener.ComponentFlattener;
|
import net.kyori.adventure.text.flattener.ComponentFlattener;
|
||||||
import net.kyori.adventure.util.Services;
|
import net.kyori.adventure.util.Services;
|
||||||
@@ -25,12 +28,14 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.damage.DamageEffect;
|
import org.bukkit.damage.DamageEffect;
|
||||||
import org.bukkit.damage.DamageSource;
|
import org.bukkit.damage.DamageSource;
|
||||||
import org.bukkit.damage.DamageType;
|
import org.bukkit.damage.DamageType;
|
||||||
|
import org.bukkit.enchantments.EnchantmentOffer;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.entity.Pose;
|
import org.bukkit.entity.Pose;
|
||||||
import org.bukkit.entity.SpawnCategory;
|
import org.bukkit.entity.SpawnCategory;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
import org.bukkit.persistence.PersistentDataType;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
@@ -52,10 +57,11 @@ public interface InternalAPIBridge {
|
|||||||
* @return the instance.
|
* @return the instance.
|
||||||
*/
|
*/
|
||||||
static InternalAPIBridge get() {
|
static InternalAPIBridge get() {
|
||||||
|
//<editor-fold defaultstate="collapsed" desc="Holder">
|
||||||
class Holder {
|
class Holder {
|
||||||
|
public static final InternalAPIBridge INSTANCE = Services.service(ServiceLoader.load(InternalAPIBridge.class), InternalAPIBridge.class).orElseThrow();
|
||||||
public static final InternalAPIBridge INSTANCE = Services.service(InternalAPIBridge.class).orElseThrow();
|
|
||||||
}
|
}
|
||||||
|
//</editor-fold>
|
||||||
|
|
||||||
return Holder.INSTANCE;
|
return Holder.INSTANCE;
|
||||||
}
|
}
|
||||||
@@ -69,14 +75,15 @@ public interface InternalAPIBridge {
|
|||||||
CombatEntry createCombatEntry(DamageSource damageSource, float damage, @Nullable FallLocationType fallLocationType, float fallDistance);
|
CombatEntry createCombatEntry(DamageSource damageSource, float damage, @Nullable FallLocationType fallLocationType, float fallDistance);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Causes this predicate to be considered restricted.
|
* Allows overriding default restricted check.
|
||||||
* Applying this to a command node prevents this command from being executed from an
|
* Applying this to a command node forcefully prevents or permits this command to be
|
||||||
* unattended context, such as click events.
|
* executed from an unattended context, such as click events.
|
||||||
*
|
*
|
||||||
* @param predicate wrapped predicate
|
* @param predicate wrapped predicate
|
||||||
|
* @param restricted restricted status of the predicate
|
||||||
* @return wrapped predicate
|
* @return wrapped predicate
|
||||||
*/
|
*/
|
||||||
Predicate<CommandSourceStack> restricted(Predicate<CommandSourceStack> predicate);
|
Predicate<CommandSourceStack> restricted(Predicate<CommandSourceStack> predicate, boolean restricted);
|
||||||
|
|
||||||
ResolvableProfile defaultMannequinProfile();
|
ResolvableProfile defaultMannequinProfile();
|
||||||
|
|
||||||
@@ -121,4 +128,8 @@ public interface InternalAPIBridge {
|
|||||||
Component resolveWithContext(Component component, @Nullable CommandSender context, @Nullable Entity scoreboardSubject, boolean bypassPermissions) throws IOException;
|
Component resolveWithContext(Component component, @Nullable CommandSender context, @Nullable Entity scoreboardSubject, boolean bypassPermissions) throws IOException;
|
||||||
|
|
||||||
ComponentFlattener componentFlattener();
|
ComponentFlattener componentFlattener();
|
||||||
|
|
||||||
|
<C> PersistentDataKey<C> createPersistentDataKey(Key key, PersistentDataType<?, C> type);
|
||||||
|
|
||||||
|
@Nullable EnchantmentOffer[] rollEnchantmentOffers(ItemStack targetStack, int seed, int bookshelfCount, int offerAmount);
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,7 @@ package io.papermc.paper;
|
|||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.OptionalInt;
|
import java.util.OptionalInt;
|
||||||
|
import java.util.ServiceLoader;
|
||||||
import net.kyori.adventure.key.Key;
|
import net.kyori.adventure.key.Key;
|
||||||
import net.kyori.adventure.util.Services;
|
import net.kyori.adventure.util.Services;
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
@@ -25,7 +26,7 @@ public interface ServerBuildInfo {
|
|||||||
static ServerBuildInfo buildInfo() {
|
static ServerBuildInfo buildInfo() {
|
||||||
//<editor-fold defaultstate="collapsed" desc="Holder">
|
//<editor-fold defaultstate="collapsed" desc="Holder">
|
||||||
final class Holder {
|
final class Holder {
|
||||||
static final Optional<ServerBuildInfo> INSTANCE = Services.service(ServerBuildInfo.class);
|
static final Optional<ServerBuildInfo> INSTANCE = Services.service(ServiceLoader.load(ServerBuildInfo.class), ServerBuildInfo.class);
|
||||||
}
|
}
|
||||||
//</editor-fold>
|
//</editor-fold>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import net.kyori.adventure.translation.Translatable;
|
|||||||
import net.kyori.adventure.util.Index;
|
import net.kyori.adventure.util.Index;
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -16,7 +15,6 @@ import org.jspecify.annotations.Nullable;
|
|||||||
* The display is used in the chat, in the toast messages and the advancements
|
* The display is used in the chat, in the toast messages and the advancements
|
||||||
* screen.
|
* screen.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public interface AdvancementDisplay {
|
public interface AdvancementDisplay {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,7 +63,7 @@ public interface AdvancementDisplay {
|
|||||||
*
|
*
|
||||||
* @return {@code true} if a message should be sent
|
* @return {@code true} if a message should be sent
|
||||||
* @see org.bukkit.event.player.PlayerAdvancementDoneEvent#message() to edit
|
* @see org.bukkit.event.player.PlayerAdvancementDoneEvent#message() to edit
|
||||||
* the message
|
* the message
|
||||||
*/
|
*/
|
||||||
boolean doesAnnounceToChat();
|
boolean doesAnnounceToChat();
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* API for advancements.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package io.papermc.paper.advancement;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Annotations that describe the API.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package io.papermc.paper.annotation;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -3,26 +3,26 @@ package io.papermc.paper.ban;
|
|||||||
import org.bukkit.BanList;
|
import org.bukkit.BanList;
|
||||||
import org.bukkit.ban.IpBanList;
|
import org.bukkit.ban.IpBanList;
|
||||||
import org.bukkit.ban.ProfileBanList;
|
import org.bukkit.ban.ProfileBanList;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a ban-type that a {@link BanList} may track.
|
* Represents a ban-type that a {@link BanList} may track.
|
||||||
* It enforces the correct return value at compile time.
|
* It enforces the correct return value at compile time.
|
||||||
|
*
|
||||||
|
* @param <T> the type of ban list
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public interface BanListType<T> {
|
public interface BanListType<T> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Banned IP addresses
|
* Banned IP addresses.
|
||||||
*/
|
*/
|
||||||
BanListType<IpBanList> IP = new BanListTypeImpl<>(IpBanList.class);
|
BanListType<IpBanList> IP = new BanListTypeImpl<>(IpBanList.class);
|
||||||
/**
|
/**
|
||||||
* Banned player profiles
|
* Banned player profiles.
|
||||||
*/
|
*/
|
||||||
BanListType<ProfileBanList> PROFILE = new BanListTypeImpl<>(ProfileBanList.class);
|
BanListType<ProfileBanList> PROFILE = new BanListTypeImpl<>(ProfileBanList.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the type class of the ban list used generically
|
* Returns the type class of the ban list used generically.
|
||||||
*
|
*
|
||||||
* @return the type class
|
* @return the type class
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
package io.papermc.paper.ban;
|
package io.papermc.paper.ban;
|
||||||
|
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
|
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
@NullMarked
|
|
||||||
record BanListTypeImpl<T>(Class<T> typeClass) implements BanListType<T> {
|
record BanListTypeImpl<T>(Class<T> typeClass) implements BanListType<T> {
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Ban list API.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package io.papermc.paper.ban;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -4,13 +4,11 @@ import org.bukkit.Fluid;
|
|||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
import org.jetbrains.annotations.Range;
|
import org.jetbrains.annotations.Range;
|
||||||
import org.jspecify.annotations.NullMarked;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A representation of a fluid in a specific state of data.
|
* A representation of a fluid in a specific state of data.
|
||||||
* This type is not linked to a specific location and hence mostly resembles a {@link org.bukkit.block.data.BlockData}.
|
* This type is not linked to a specific location and hence mostly resembles a {@link org.bukkit.block.data.BlockData}.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
|
||||||
public interface FluidData extends Cloneable {
|
public interface FluidData extends Cloneable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,8 +42,7 @@ public interface FluidData extends Cloneable {
|
|||||||
*
|
*
|
||||||
* @return the amount as an integer, between 0 and 8
|
* @return the amount as an integer, between 0 and 8
|
||||||
*/
|
*/
|
||||||
@Range(from = 0, to = 8)
|
@Range(from = 0, to = 8) int getLevel();
|
||||||
int getLevel();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the height of the fluid in the world.
|
* Computes the height of the fluid in the world.
|
||||||
@@ -57,11 +54,10 @@ public interface FluidData extends Cloneable {
|
|||||||
* @param location the location at which to check the high of this fluid data.
|
* @param location the location at which to check the high of this fluid data.
|
||||||
* @return the height as a float value
|
* @return the height as a float value
|
||||||
*/
|
*/
|
||||||
@Range(from = 0, to = 1)
|
@Range(from = 0, to = 1) float computeHeight(Location location);
|
||||||
float computeHeight(Location location);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether this fluid is a source block
|
* Returns whether this fluid is a source block.
|
||||||
*
|
*
|
||||||
* @return true if the fluid is a source block, false otherwise
|
* @return true if the fluid is a source block, false otherwise
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* API for fluids and their data.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package io.papermc.paper.block.fluid;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Specific types of {@link io.papermc.paper.block.fluid.FluidData}.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package io.papermc.paper.block.fluid.type;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package io.papermc.paper.block.pot;
|
||||||
|
|
||||||
|
import org.bukkit.Keyed;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A pot pattern on a decorated pot.
|
||||||
|
*/
|
||||||
|
public interface PotPatternType extends Keyed {
|
||||||
|
}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
package io.papermc.paper.block.pot;
|
||||||
|
|
||||||
|
import io.papermc.paper.registry.RegistryAccess;
|
||||||
|
import io.papermc.paper.registry.RegistryKey;
|
||||||
|
import net.kyori.adventure.key.Key;
|
||||||
|
import net.kyori.adventure.key.KeyPattern;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All pot pattern types.
|
||||||
|
*/
|
||||||
|
public final class PotPatternTypes {
|
||||||
|
|
||||||
|
// Start generate - PotPatternTypes
|
||||||
|
public static final PotPatternType ANGLER = getType("angler");
|
||||||
|
|
||||||
|
public static final PotPatternType ARCHER = getType("archer");
|
||||||
|
|
||||||
|
public static final PotPatternType ARMS_UP = getType("arms_up");
|
||||||
|
|
||||||
|
public static final PotPatternType BLADE = getType("blade");
|
||||||
|
|
||||||
|
public static final PotPatternType BREWER = getType("brewer");
|
||||||
|
|
||||||
|
public static final PotPatternType BURN = getType("burn");
|
||||||
|
|
||||||
|
public static final PotPatternType DANGER = getType("danger");
|
||||||
|
|
||||||
|
public static final PotPatternType EXPLORER = getType("explorer");
|
||||||
|
|
||||||
|
public static final PotPatternType FLOW = getType("flow");
|
||||||
|
|
||||||
|
public static final PotPatternType FRIEND = getType("friend");
|
||||||
|
|
||||||
|
public static final PotPatternType GUSTER = getType("guster");
|
||||||
|
|
||||||
|
public static final PotPatternType HEART = getType("heart");
|
||||||
|
|
||||||
|
public static final PotPatternType HEARTBREAK = getType("heartbreak");
|
||||||
|
|
||||||
|
public static final PotPatternType HOWL = getType("howl");
|
||||||
|
|
||||||
|
public static final PotPatternType MINER = getType("miner");
|
||||||
|
|
||||||
|
public static final PotPatternType MOURNER = getType("mourner");
|
||||||
|
|
||||||
|
public static final PotPatternType PLENTY = getType("plenty");
|
||||||
|
|
||||||
|
public static final PotPatternType PRIZE = getType("prize");
|
||||||
|
|
||||||
|
public static final PotPatternType SCRAPE = getType("scrape");
|
||||||
|
|
||||||
|
public static final PotPatternType SHEAF = getType("sheaf");
|
||||||
|
|
||||||
|
public static final PotPatternType SHELTER = getType("shelter");
|
||||||
|
|
||||||
|
public static final PotPatternType SKULL = getType("skull");
|
||||||
|
|
||||||
|
public static final PotPatternType SNORT = getType("snort");
|
||||||
|
// End generate - PotPatternTypes
|
||||||
|
|
||||||
|
private static PotPatternType getType(@KeyPattern.Value final String key) {
|
||||||
|
return RegistryAccess.registryAccess().getRegistry(RegistryKey.DECORATED_POT_PATTERN).getOrThrow(Key.key(Key.MINECRAFT_NAMESPACE, key));
|
||||||
|
}
|
||||||
|
|
||||||
|
private PotPatternTypes() {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Classes relevant to pot blocks.
|
||||||
|
*/
|
||||||
|
@NullMarked
|
||||||
|
package io.papermc.paper.block.pot;
|
||||||
|
|
||||||
|
import org.jspecify.annotations.NullMarked;
|
||||||
@@ -5,14 +5,13 @@ import io.papermc.paper.command.brigadier.MessageComponentSerializer;
|
|||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.ComponentLike;
|
import net.kyori.adventure.text.ComponentLike;
|
||||||
import net.kyori.adventure.text.TextComponent;
|
import net.kyori.adventure.text.TextComponent;
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper methods to bridge the gaps between Brigadier and Paper-MojangAPI.
|
* Helper methods to bridge the gaps between Brigadier and Paper-MojangAPI.
|
||||||
*
|
*
|
||||||
* @deprecated for removal. See {@link MessageComponentSerializer} for a direct replacement of functionality found in
|
* @deprecated for removal. See {@link MessageComponentSerializer} for a direct replacement of functionality found in
|
||||||
* this class.
|
* this class.
|
||||||
* As a general entrypoint to brigadier on paper, see {@link io.papermc.paper.command.brigadier.Commands}.
|
* As a general entrypoint to brigadier on paper, see {@link io.papermc.paper.command.brigadier.Commands}.
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "1.20.6")
|
@Deprecated(forRemoval = true, since = "1.20.6")
|
||||||
public final class PaperBrigadier {
|
public final class PaperBrigadier {
|
||||||
@@ -28,7 +27,7 @@ public final class PaperBrigadier {
|
|||||||
* @param componentLike The {@link ComponentLike} to use for the {@link Message} contents
|
* @param componentLike The {@link ComponentLike} to use for the {@link Message} contents
|
||||||
* @return A new Brigadier {@link Message}
|
* @return A new Brigadier {@link Message}
|
||||||
*/
|
*/
|
||||||
public static @NonNull Message message(final @NonNull ComponentLike componentLike) {
|
public static Message message(final ComponentLike componentLike) {
|
||||||
return MessageComponentSerializer.message().serialize(componentLike.asComponent());
|
return MessageComponentSerializer.message().serialize(componentLike.asComponent());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,7 +41,7 @@ public final class PaperBrigadier {
|
|||||||
* @param message The {@link Message} to create a {@link Component} from
|
* @param message The {@link Message} to create a {@link Component} from
|
||||||
* @return The created {@link Component}
|
* @return The created {@link Component}
|
||||||
*/
|
*/
|
||||||
public static @NonNull Component componentFromMessage(final @NonNull Message message) {
|
public static Component componentFromMessage(final Message message) {
|
||||||
return MessageComponentSerializer.message().deserialize(message);
|
return MessageComponentSerializer.message().deserialize(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loaded 100 of 1483 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user