Logging for plugin gathering

Moved spammy API stuff to a separate logger
This commit is contained in:
Nicholas Ignoffo 2018-02-17 09:48:17 -08:00
parent f49e661eb6
commit f89b5a005a
7 changed files with 50 additions and 16 deletions

View file

@ -55,7 +55,7 @@ public class BloodMagicAPI implements IBloodMagicAPI {
}
if (component != null) {
BMLog.API.info("Registered {} as a {} altar component.", state, componentType);
BMLog.API_VERBOSE.info("Registered {} as a {} altar component.", state, componentType);
altarComponents.put(component, state);
} else BMLog.API.warn("Invalid Altar component type: {}.", componentType);
}

View file

@ -30,7 +30,7 @@ public class BloodMagicBlacklist implements IBloodMagicBlacklist {
@Override
public void addTeleposer(@Nonnull IBlockState state) {
if (!teleposer.contains(state)) {
BMLog.API.info("Blacklist: Added {} to the Teleposer blacklist.", state);
BMLog.API_VERBOSE.info("Blacklist: Added {} to the Teleposer blacklist.", state);
teleposer.add(state);
}
}
@ -43,7 +43,7 @@ public class BloodMagicBlacklist implements IBloodMagicBlacklist {
@Override
public void addTeleposer(@Nonnull ResourceLocation entityId) {
if (!teleposerEntities.contains(entityId)) {
BMLog.API.info("Blacklist: Added {} to the Teleposer blacklist.", entityId);
BMLog.API_VERBOSE.info("Blacklist: Added {} to the Teleposer blacklist.", entityId);
teleposerEntities.add(entityId);
}
}
@ -51,7 +51,7 @@ public class BloodMagicBlacklist implements IBloodMagicBlacklist {
@Override
public void addTransposition(@Nonnull IBlockState state) {
if (!transposition.contains(state)) {
BMLog.API.info("Blacklist: Added {} to the Transposition blacklist.", state);
BMLog.API_VERBOSE.info("Blacklist: Added {} to the Transposition blacklist.", state);
transposition.add(state);
}
}
@ -64,7 +64,7 @@ public class BloodMagicBlacklist implements IBloodMagicBlacklist {
@Override
public void addGreenGrove(@Nonnull IBlockState state) {
if (!greenGrove.contains(state)) {
BMLog.API.info("Blacklist: Added {} to the Green Grove blacklist.", state);
BMLog.API_VERBOSE.info("Blacklist: Added {} to the Green Grove blacklist.", state);
greenGrove.add(state);
}
}
@ -77,7 +77,7 @@ public class BloodMagicBlacklist implements IBloodMagicBlacklist {
@Override
public void addWellOfSuffering(@Nonnull ResourceLocation entityId) {
if (!sacrifice.contains(entityId)) {
BMLog.API.info("Blacklist: Added {} to the Well of Suffering blacklist.", entityId);
BMLog.API_VERBOSE.info("Blacklist: Added {} to the Well of Suffering blacklist.", entityId);
sacrifice.add(entityId);
}
}

View file

@ -25,7 +25,7 @@ public class BloodMagicValueManager implements IBloodMagicValueManager {
@Override
public void setSacrificialValue(@Nonnull ResourceLocation entityId, int value) {
BMLog.API.info("Value Manager: Set sacrificial value of {} to {}.", entityId, value);
BMLog.API_VERBOSE.info("Value Manager: Set sacrificial value of {} to {}.", entityId, value);
sacrificial.put(entityId, value);
}
@ -40,14 +40,14 @@ public class BloodMagicValueManager implements IBloodMagicValueManager {
}
if (tranquility != null) {
BMLog.API.info("Value Manager: Set tranquility value of {} to {} @ {}", state, tranquilityType, value);
BMLog.API_VERBOSE.info("Value Manager: Set tranquility value of {} to {} @ {}", state, tranquilityType, value);
this.tranquility.put(state, new TranquilityStack(tranquility, value));
} else BMLog.API.warn("Invalid tranquility type: {}.", tranquilityType);
}
public void setTranquility(Block block, TranquilityStack tranquilityStack) {
for (IBlockState state : block.getBlockState().getValidStates()) {
BMLog.API.info("Value Manager: Set tranquility value of {} to {} @ {}", state, tranquilityStack.type, tranquilityStack.value);
BMLog.API_VERBOSE.info("Value Manager: Set tranquility value of {} to {} @ {}", state, tranquilityStack.type, tranquilityStack.value);
tranquility.put(state, tranquilityStack);
}
}