chore: add reasons for overrides
This commit is contained in:
parent
08201ac873
commit
f87479993b
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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!
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user