mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 04:38:35 +00:00
Javadoc and Formatting fixes. (#619)
Javadoc and Formatting fixes. Also, extremely minor code changes which have been tested. This commit is only part one of two commits that aim to fix problems with formatting in our project. In part two I will modify the Google Java Style Guide (since it closely matches our code style) for our project so there is guidance on how to format and document. * Updated PlotSquared URL * Removed plugin acronyms * Fixed a typo * Fixed grammar * Use modern block id's * Update YouTube video URL
This commit is contained in:
@ -42,6 +42,7 @@ public final class BlockStateIdAccess {
|
||||
|
||||
public interface BlockStateInternalId {
|
||||
int getInternalId(BlockState blockState);
|
||||
|
||||
void setInternalId(BlockState blockState, int internalId);
|
||||
}
|
||||
|
||||
@ -52,6 +53,7 @@ public final class BlockStateIdAccess {
|
||||
}
|
||||
|
||||
/**
|
||||
* An invalid internal ID, for verification purposes.
|
||||
* @return an internal ID which is never valid
|
||||
*/
|
||||
public static int invalidId() {
|
||||
@ -67,7 +69,8 @@ public final class BlockStateIdAccess {
|
||||
//return blockStateInternalId.getInternalId(holder);
|
||||
}
|
||||
|
||||
public static @Nullable BlockState getBlockStateById(int id) {
|
||||
@Nullable
|
||||
public static BlockState getBlockStateById(int id) {
|
||||
return BlockState.getFromOrdinal(id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user