-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update to 24w11a (thanks to Hugman76) - Deprecate SpriteIdentifierRegistry
- Loading branch information
1 parent
4d1431a
commit 3302bf1
Showing
3 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...wood-api-v1/src/main/java/com/terraformersmc/terraform/sign/SpriteIdentifierRegistry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.terraformersmc.terraform.sign; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import net.minecraft.client.util.SpriteIdentifier; | ||
|
||
/** | ||
* @deprecated SpriteIdentifierRegistry is no longer used | ||
* | ||
* <p>It is no longer necessary to separately register the sign sprite identifiers. | ||
* This class is deprecated and will be removed. | ||
* Calls to {@link #addIdentifier(SpriteIdentifier)} are now no-ops. | ||
*/ | ||
@Deprecated(forRemoval = true, since = "10.0.0") | ||
public class SpriteIdentifierRegistry { | ||
public static final SpriteIdentifierRegistry INSTANCE = new SpriteIdentifierRegistry(); | ||
|
||
/** | ||
* @deprecated Ignores the provided sprite identifier | ||
* | ||
* @param sprite Sprite identifier which no longer needs to be registered | ||
*/ | ||
@Deprecated(forRemoval = true, since = "10.0.0") | ||
public void addIdentifier(SpriteIdentifier sprite) { | ||
} | ||
|
||
/** | ||
* @deprecated Returns an empty list | ||
* | ||
* @return Collection of registered sign sprite identifiers | ||
*/ | ||
@Deprecated(forRemoval = true, since = "10.0.0") | ||
public Collection<SpriteIdentifier> getIdentifiers() { | ||
return List.of(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters