Fix more warnings and do some small optimizations (#1356)
* Fix more warnings and do some small optimizations * Fix more warnings in ValueConversions * Clean up some decompiler names and fix an unnecessary transformation around commands * Use (way) more compact data structure for slot map * Minor tweaks Such as map directly in the collector * I hate vanilla javac Revert map changes in latest commit
This commit is contained in:
1 parent
e4dc080657
commit
f18cfb09d2
18 files changed
+116
-139
No files matched your search
@@ -28,13 +28,13 @@ public abstract class DistanceManager_spawnChunksMixin implements ChunkTicketMan
|
||||
{
|
||||
long pos = chunkPos.toLong();
|
||||
SortedArraySet<Ticket<?>> set = tickets.get(pos);
|
||||
Ticket existingTicket = null;
|
||||
Ticket<?> existingTicket = null;
|
||||
if (set != null)
|
||||
{
|
||||
Iterator<Ticket<?>> iter = set.iterator();
|
||||
while(iter.hasNext())
|
||||
{
|
||||
Ticket ticket = iter.next();
|
||||
Ticket<?> ticket = iter.next();
|
||||
if (ticket.getType() == TicketType.START)
|
||||
{
|
||||
existingTicket = ticket;
|
||||
|
||||
@@ -14,7 +14,7 @@ import net.minecraft.world.level.entity.EntitySectionStorage;
|
||||
import net.minecraft.world.level.entity.LevelEntityGetterAdapter;
|
||||
|
||||
@Mixin(LevelEntityGetterAdapter.class)
|
||||
public class LevelEntityGetterAdapter_scarpetMixin<T extends EntityAccess> implements SimpleEntityLookupInterface
|
||||
public class LevelEntityGetterAdapter_scarpetMixin<T extends EntityAccess> implements SimpleEntityLookupInterface<T>
|
||||
{
|
||||
|
||||
@Shadow @Final private EntitySectionStorage<T> sectionStorage;
|
||||
|
||||
@@ -94,7 +94,7 @@ public abstract class Villager_aiMixin extends AbstractVillager
|
||||
(recentlySeen?"rb ":"lb ")+time ));
|
||||
this.setCustomNameVisible(true);
|
||||
}
|
||||
else if (MobAI.isTracking(this, MobAI.TrackingType.VILLAGER_BREEDING))
|
||||
else if (MobAI.isTracking(this, MobAI.TrackingType.BREEDING))
|
||||
{
|
||||
if (tickCount % 50 == 0 || tickCount < 20)
|
||||
{
|
||||
@@ -117,7 +117,7 @@ public abstract class Villager_aiMixin extends AbstractVillager
|
||||
@Inject(method = "mobInteract", at = @At("HEAD"), cancellable = true)
|
||||
private void onInteract(Player playerEntity_1, InteractionHand hand_1, CallbackInfoReturnable<InteractionResult> cir)
|
||||
{
|
||||
if (MobAI.isTracking(this, MobAI.TrackingType.VILLAGER_BREEDING))
|
||||
if (MobAI.isTracking(this, MobAI.TrackingType.BREEDING))
|
||||
{
|
||||
ItemStack itemStack_1 = playerEntity_1.getItemInHand(hand_1);
|
||||
if (itemStack_1.getItem() == Items.EMERALD)
|
||||
|
||||
Reference in new issue
Block a user