Skip to content

Commit

Permalink
Remove more @Environment(EnvType.CLIENT) annotations in common mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
Poopooracoocoo committed Feb 6, 2024
1 parent 8951d2c commit 589e5b0
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public InfectiousSpitEntity(World world, Set<StatusEffectInstance> effects) {
initColor();
}

@Environment(EnvType.CLIENT)
public InfectiousSpitEntity(World world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {
this(BSMEntityTypes.INFECTIOUS_SPIT, world);
this.setPosition(x, y, z);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public LichGemItem() {
}

@Override
@Environment(EnvType.CLIENT)
public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) {
if (isSouled(stack)){
tooltip.add(Text.translatable("tooltip.besmirchment.souled").fillStyle(Style.EMPTY.withColor(TextColor.fromRgb(0x8eed5e))));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class WerepyreEntity extends BWHostileEntity {
public static final TrackedData<Integer> JUMP_TICKS = DataTracker.registerData(WerepyreEntity.class, TrackedDataHandlerRegistry.INTEGER);
public NbtCompound storedVillager;

@Environment(EnvType.CLIENT)
public float jumpBeginProgress = 0;

public WerepyreEntity(EntityType<? extends HostileEntity> entityType, World world) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ default void onTamedChanged(){

}

@Environment(EnvType.CLIENT)
void showEmoteParticle(boolean positive);

default boolean canAttackWithOwner(LivingEntity target, LivingEntity owner) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public boolean isEnchantable(ItemStack stack) {
}

@Override
@Environment(EnvType.CLIENT)
public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) {
if (TaglockItem.hasTaglock(stack)) {
tooltip.add((Text.translatable(TaglockItem.getTaglockName(stack))).formatted(Formatting.GRAY));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public static void send(LivingEntity entity){
PlayerLookup.tracking(entity).forEach(player -> ServerPlayNetworking.send(player, ID, buf));
}

@Environment(EnvType.CLIENT)
public static void handle(MinecraftClient client, ClientPlayNetworkHandler networkHandler, PacketByteBuf buf, PacketSender sender) {
int id = buf.readInt();
client.execute(() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public static void send(LivingEntity entity){
PlayerLookup.tracking(entity).forEach(player -> ServerPlayNetworking.send(player, ID, buf));
}

@Environment(EnvType.CLIENT)
public static void handle(MinecraftClient client, ClientPlayNetworkHandler networkHandler, PacketByteBuf buf, PacketSender sender) {
int id = buf.readInt();
client.execute(() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ public interface WerepyreAccessor {
int getLastJumpTicks();
void setLastJumpTicks(int ticks);

@Environment(EnvType.CLIENT)
float getLastJumpProgress();
}

0 comments on commit 589e5b0

Please sign in to comment.