3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

Deprecate and add the warnings for BlockType#getState as it is broken

Dieser Commit ist enthalten in:
dordsor21 2021-08-23 21:28:06 +01:00
Ursprung c0893a404d
Commit 6301a7adb9
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -269,7 +269,9 @@ public class BlockType implements Keyed, Pattern {
* Gets a state of this BlockType with the given properties. * Gets a state of this BlockType with the given properties.
* *
* @return The state, if it exists * @return The state, if it exists
* @deprecated Not working. Not necessarily for removal, but WARNING DO NOT USE FOR NOW
*/ */
@Deprecated(forRemoval = true)
public BlockState getState(Map<Property<?>, Object> key) { public BlockState getState(Map<Property<?>, Object> key) {
//FAWE start - use ids & btp (block type property) //FAWE start - use ids & btp (block type property)
int id = getInternalId(); int id = getInternalId();