mappings
This commit is contained in:
1 parent
b5e34ad030
commit
c94ba6a021
7 files changed
+16
-16
No files matched your search
@@ -365,7 +365,7 @@ public class BlockRotator
|
||||
if (newState != null)
|
||||
{
|
||||
world.setBlockState(pos, newState, 2 | 1024);
|
||||
world.checkBlockRerender(pos, state, newState);
|
||||
world.scheduleBlockRerenderIfNeeded(pos, state, newState);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -17,7 +17,7 @@ import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.ChunkPos;
|
||||
import net.minecraft.world.biome.Biome;
|
||||
import net.minecraft.world.biome.Biomes;
|
||||
import net.minecraft.world.biome.DefaultBiomeFeatures;
|
||||
import net.minecraft.world.gen.feature.DefaultBiomeFeatures;
|
||||
import net.minecraft.world.biome.source.BiomeAccess;
|
||||
//import net.minecraft.world.biome.source.BiomeSource;
|
||||
//import net.minecraft.world.biome.source.FixedBiomeSource;
|
||||
@@ -56,8 +56,8 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import static net.minecraft.world.biome.DefaultBiomeFeatures.FANCY_TREE_CONFIG;
|
||||
import static net.minecraft.world.biome.DefaultBiomeFeatures.OAK_TREE_CONFIG;
|
||||
import static net.minecraft.world.gen.feature.DefaultBiomeFeatures.FANCY_TREE_CONFIG;
|
||||
import static net.minecraft.world.gen.feature.DefaultBiomeFeatures.OAK_TREE_CONFIG;
|
||||
|
||||
public class FeatureGenerator
|
||||
{
|
||||
|
||||
@@ -182,7 +182,7 @@ public class Logger
|
||||
|
||||
public void sendPlayerMessage(ServerPlayerEntity player, BaseText ... messages)
|
||||
{
|
||||
Arrays.stream(messages).forEach(message -> player.sendSystemMessage(message, Util.field_25140));
|
||||
Arrays.stream(messages).forEach(message -> player.sendSystemMessage(message, Util.NIL_UUID));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -39,7 +39,7 @@ public abstract class World_movableTEMixin implements WorldInterface, WorldAcces
|
||||
//public abstract ChunkManager getChunkManager();
|
||||
|
||||
@Shadow
|
||||
public abstract void checkBlockRerender(BlockPos blockPos_1, BlockState s1, BlockState s2);
|
||||
public abstract void scheduleBlockRerenderIfNeeded(BlockPos blockPos_1, BlockState s1, BlockState s2);
|
||||
|
||||
@Shadow
|
||||
public abstract void updateListeners(BlockPos var1, BlockState var2, BlockState var3, int var4);
|
||||
@@ -105,7 +105,7 @@ public abstract class World_movableTEMixin implements WorldInterface, WorldAcces
|
||||
{
|
||||
if (blockState_2 != blockState_3)
|
||||
{
|
||||
this.checkBlockRerender(blockPos_1, blockState_2, blockState_3);
|
||||
this.scheduleBlockRerenderIfNeeded(blockPos_1, blockState_2, blockState_3);
|
||||
}
|
||||
|
||||
if ((int_1 & 2) != 0 && (!this.isClient || (int_1 & 4) == 0) && (this.isClient || worldChunk_1.getLevelType() != null && worldChunk_1.getLevelType().isAfter(ChunkHolder.LevelType.TICKING)))
|
||||
|
||||
@@ -860,7 +860,7 @@ public class CarpetExpression
|
||||
boolean dropLoot = true;
|
||||
if (playerBreak)
|
||||
{
|
||||
boolean isUsingEffectiveTool = !state.method_29291() || tool.isEffectiveOn(state); //!can break by hand
|
||||
boolean isUsingEffectiveTool = !state.isToolRequired() || tool.isEffectiveOn(state);
|
||||
//postMine() durability from item classes
|
||||
float hardness = state.getHardness(world, where);
|
||||
int damageAmount = 0;
|
||||
|
||||
@@ -258,7 +258,7 @@ public class Messenger
|
||||
}
|
||||
public static void m(PlayerEntity player, Object ... fields)
|
||||
{
|
||||
player.sendSystemMessage(Messenger.c(fields), Util.field_25140); //NULL UUID
|
||||
player.sendSystemMessage(Messenger.c(fields), Util.NIL_UUID);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -302,7 +302,7 @@ public class Messenger
|
||||
|
||||
public static void send(PlayerEntity player, Collection<BaseText> lines)
|
||||
{
|
||||
lines.forEach(message -> player.sendSystemMessage(message, Util.field_25140));
|
||||
lines.forEach(message -> player.sendSystemMessage(message, Util.NIL_UUID));
|
||||
}
|
||||
public static void send(ServerCommandSource source, Collection<BaseText> lines)
|
||||
{
|
||||
@@ -314,21 +314,21 @@ public class Messenger
|
||||
{
|
||||
if (server == null)
|
||||
LOG.error("Message not delivered: "+message);
|
||||
server.sendSystemMessage(new LiteralText(message), Util.field_25140);
|
||||
server.sendSystemMessage(new LiteralText(message), Util.NIL_UUID);
|
||||
BaseText txt = c("gi "+message);
|
||||
for (PlayerEntity entityplayer : server.getPlayerManager().getPlayerList())
|
||||
{
|
||||
entityplayer.sendSystemMessage(txt, Util.field_25140);
|
||||
entityplayer.sendSystemMessage(txt, Util.NIL_UUID);
|
||||
}
|
||||
}
|
||||
public static void print_server_message(MinecraftServer server, BaseText message)
|
||||
{
|
||||
if (server == null)
|
||||
LOG.error("Message not delivered: "+message.getString());
|
||||
server.sendSystemMessage(message, Util.field_25140);
|
||||
server.sendSystemMessage(message, Util.NIL_UUID);
|
||||
for (PlayerEntity entityplayer : server.getPlayerManager().getPlayerList())
|
||||
{
|
||||
entityplayer.sendSystemMessage(message, Util.field_25140);
|
||||
entityplayer.sendSystemMessage(message, Util.NIL_UUID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user