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

This commit is contained in:
dordsor21 2021-08-23 21:28:06 +01:00
parent c0893a404d
commit 6301a7adb9
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -269,7 +269,9 @@ public class BlockType implements Keyed, Pattern {
* Gets a state of this BlockType with the given properties.
*
* @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) {
//FAWE start - use ids & btp (block type property)
int id = getInternalId();