chore: add reasons for overrides

This commit is contained in:
Johannes Frohnmeyer 2023-07-16 14:37:49 +02:00
parent 08201ac873
commit f87479993b
Signed by: Johannes
GPG Key ID: E76429612C2929F4
4 changed files with 9 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import org.spongepowered.asm.mixin.Overwrite;
public class DistantContainerXx9 { public class DistantContainerXx9 {
/** /**
* @author JFronny * @author JFronny
* @reason Containers GUIs should never be closed under any circumstances
*/ */
@Overwrite @Overwrite
public boolean canUse(PlayerEntity player) { public boolean canUse(PlayerEntity player) {

View File

@ -9,6 +9,7 @@ import org.spongepowered.asm.mixin.Overwrite;
public class DistantContainers3x3 { public class DistantContainers3x3 {
/** /**
* @author JFronny * @author JFronny
* @reason Containers GUIs should never be closed under any circumstances
*/ */
@Overwrite @Overwrite
public boolean canUse(PlayerEntity player) { public boolean canUse(PlayerEntity player) {

View File

@ -8,12 +8,14 @@ import org.spongepowered.asm.mixin.Overwrite;
public class IgnoreEula { public class IgnoreEula {
/** /**
* @author JFronny * @author JFronny
* @reason Simplify setting up servers slightly and remove one file. You already agreed to the EULA, so this should be fine.
*/ */
@Overwrite @Overwrite
private boolean checkEulaAgreement() { return true; } private boolean checkEulaAgreement() { return true; }
/** /**
* @author JFronny * @author JFronny
* @reason Simplify setting up servers slightly and remove one file. You already agreed to the EULA, so this should be fine.
*/ */
@Overwrite @Overwrite
public boolean isEulaAgreedTo() { public boolean isEulaAgreedTo() {
@ -22,7 +24,10 @@ public class IgnoreEula {
/** /**
* @author JFronny * @author JFronny
* @reason Simplify setting up servers slightly and remove one file. You already agreed to the EULA, so this should be fine.
*/ */
@Overwrite @Overwrite
private void createEulaFile() { } private void createEulaFile() {
// Do not create anything!
}
} }

View File

@ -10,6 +10,7 @@ import org.spongepowered.asm.mixin.Overwrite;
public abstract class UnblockChests { public abstract class UnblockChests {
/** /**
* @author JFronny * @author JFronny
* @reason Chests should never be blocked under any circumstances
*/ */
@Overwrite @Overwrite
public static boolean isChestBlocked(WorldAccess world, BlockPos pos) { public static boolean isChestBlocked(WorldAccess world, BlockPos pos) {