Skip to content

Instantly share code, notes, and snippets.

private void spawnTrapHorse(SpawnEntityEvent event) {
event.filterEntities(
entity -> !entity.get(Keys.HORSE_VARIANT)
.filter(HorseVariants.SKELETON_HORSE::equals)
.isPresent()
);
}
@ryantheleach
ryantheleach / InteractItemEvent.java
Last active October 13, 2016 14:38 — forked from bloodmc/InteractItemEvent.java
InteractItemEvent
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@import "theme_variables";
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
// ######################################
// ### CONFIG
// Annoying purple highlight for pinned topic
$highlighted_topic_id: 2130;
// ######################################
10.01 20:57:12 [Server] Server thread/FATAL Error executing task
10.01 20:57:12 [Server] INFO java.util.concurrent.ExecutionException: java.lang.AbstractMethodError: Method jds/bibliocraft/tileentities/TileEntityTypeMachine.getStackInSlot(I)Lnet/minecraft/item/ItemStack; is abstract
10.01 20:57:12 [Server] INFO at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_151]
10.01 20:57:12 [Server] INFO at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_151]
10.01 20:57:12 [Server] INFO at net.minecraft.util.Util.runTask(SourceFile:47) [h.class:?]
10.01 20:57:12 [Server] INFO at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:274) [SpongeImplHooks.class:1.12.2-2555-7.1.0-BETA-2825]
10.01 20:57:12 [Server] INFO at net.minecraft.server.MinecraftServer.redirect$onRun$zjg000(MinecraftServer.java:4007) [MinecraftServer.class:?]
10.01 20:57:12 [Server] INFO at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:721) [Minecr
[20:16:26] [Server thread/WARN]: Failed to handle packet for /127.0.0.1:37978
net.minecraft.util.ReportedException: Ticking player
at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:459) ~[oq.class:?]
at net.minecraft.network.NetHandlerPlayServer.redirect$onPlayerTick$zhm000(NetHandlerPlayServer.java:2029) ~[pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.update(NetHandlerPlayServer.java:173) ~[pa.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.update(NetworkDispatcher.java:209) ~[NetworkDispatcher$1.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:285) ~[gw.class:?]
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:180) [oz.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:788) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:396) [nz.class:?]
---- Minecraft Crash Report ----
WARNING: coremods are present:
SpongeCoremod (sponge.jar)
Contact their authors BEFORE contacting forge
// Don't be sad. I'll do better next time, I promise!
Time: 1/28/18 4:20 PM
Description: Ticking entity
---- Minecraft Crash Report ----
WARNING: coremods are present:
Techguns Core (techguns-1.12.2-2.0.1.0.jar)
SpongeCoremod (spongeforge-1.12.2-2655-7.1.0-BETA-3065.jar)
Inventory Tweaks Coremod (InventoryTweaks-1.64-dev.jar)
BetterFoliageLoader (BetterFoliage-MC1.12-2.1.10.jar)
EnderCorePlugin (EnderCore-1.12.2-0.5.22.jar)
Contact their authors BEFORE contacting forge
@ryantheleach
ryantheleach / iitc-player-tracker-names-alt.user.js
Created September 24, 2019 13:55 — forked from wene1067/iitc-player-tracker-names-alt.user.js
IITC Player Tracker Names leaflet label version
// ==UserScript==
// @id iitc-player-tracker-names-alt
// @name IITC Player Tracker Names alt
// @category Tweaks
// @version 1.0
// @description This plugin displays player names for player tracker
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @match https://*.ingress.com/intel*
// @match http://*.ingress.com/intel*
// ==UserScript==
// @id iitc-plugin-highlight-L4@YppKYMthrFckr
// @name IITC plugin: L4 Highlighter
// @category Highlighter
// @version 0.1.1.20170411.215050
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @description [iitc-2017-04-11-215050] use black portal fill to show L4 portals.
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @match https://*.ingress.com/intel*
// ==UserScript==
// @id iitc-plugin-basemap-gmaps-giantseyes@marcg
// @name IITC plugin: GiantsEyes Google Roads
// @category Map Tiles
// @version 0.1.0.0
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @description Port of iitc RecognEyes Theme
// @include https://www.ingress.com/intel*
// @include http://www.ingress.com/intel*
// @include https://intel.ingress.com/*