mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +02:00
better comments
This commit is contained in:
parent
ed86b67c18
commit
7911765af8
1 changed files with 3 additions and 4 deletions
|
@ -129,7 +129,7 @@ public class Utl {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get a block ID (namespace, minecraft:air) from a blockstate. (it is easier with a block, but we are mostly working with block states
|
* get a block ID (eg. minecraft:air) from a blockstate. (it is easier with a block, but we are mostly working with block states
|
||||||
* @return the block ID (minecraft:air)
|
* @return the block ID (minecraft:air)
|
||||||
*/
|
*/
|
||||||
public static String getBlockID(BlockState blockState) {
|
public static String getBlockID(BlockState blockState) {
|
||||||
|
@ -183,8 +183,8 @@ public class Utl {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* checks if a block has an interaction
|
* checks if a block has an interaction
|
||||||
* @param blockState
|
* @param blockState the blockstate of the block to check
|
||||||
* @return
|
* @return if the block has an interaction or not
|
||||||
*/
|
*/
|
||||||
public static boolean hasInteraction(BlockState blockState) {
|
public static boolean hasInteraction(BlockState blockState) {
|
||||||
return isMethodOverridden(AbstractBlock.class, blockState.getBlock().getClass(), "onUse", BlockState.class, World.class, BlockPos.class, PlayerEntity.class, BlockHitResult.class);
|
return isMethodOverridden(AbstractBlock.class, blockState.getBlock().getClass(), "onUse", BlockState.class, World.class, BlockPos.class, PlayerEntity.class, BlockHitResult.class);
|
||||||
|
@ -378,7 +378,6 @@ public class Utl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo call when editing a config on the client
|
|
||||||
/**
|
/**
|
||||||
* sends the settings packets to the server, if client & in game
|
* sends the settings packets to the server, if client & in game
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue