View Bindable.cs
public abstract class Bindable : MonoBehaviour, INotifyPropertyChanged | |
{ | |
private readonly Dictionary<string, object> _properties = new Dictionary<string, object>(); | |
private static readonly StackTrace stackTrace = new StackTrace(); | |
public event PropertyChangedEventHandler PropertyChanged; | |
/// <summary> | |
/// Resolves a Property's name from a Lambda Expression passed in. | |
/// </summary> |
View ThefuckDidIJustDo.java
package com.riagenic.BlockFarmer.core.asm.utils; | |
import com.google.common.collect.Maps; | |
import net.minecraftforge.fml.common.FMLLog; | |
import net.minecraftforge.fml.common.ObfuscationReflectionHelper; | |
import net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper; | |
import java.io.IOException; | |
import java.net.URL; | |
import java.nio.charset.Charset; |
View gist:bf5313c1e6596142edff
public static void RenderFloatingItemIcon(float x, float y, float z, Item item, float partialTickTime, boolean animate) { | |
BlockPos pos = new BlockPos(x,y,z); | |
// Create Empty EntityItem to help with Rendering Positionining. | |
EntityItem entity = new EntityItem(mc.theWorld,pos.getX(),pos.getY(), pos.getZ()); | |
if (entity.ticksExisted == 0) | |
{ | |
entity.lastTickPosX = entity.posX; | |
entity.lastTickPosY = entity.posY; | |
entity.lastTickPosZ = entity.posZ; |